Led sensor
From ArmadeusWiki
According to this paper, a simple LED can be a light sensor if used in reverse mode. In fact if LED is used in invert, it becomes a variable capacitance.
To test this phenomena, I have used a pin of the FPGA, and design a little component/IP that provides the discharging time in a register.
Code
How does it work ?
Results
With a green standard led, that gives :