Patent ID: 7170606

Claim:
A light sensor comprising: a set of light emitting diodes, each light emitting diode configured to emit a corresponding wavelength such that at least one wavelength of one light emitting diode is different than one other wavelength of another light emitting diode; and a microcontroller, comprising: a plurality of pairs of I/O pins, there being one pair of I/O pins connected to one corresponding light emitting diode; means for selectively driving a first subset of the light emitting diodes in a reverse bias to charge a capacitance of the first subset of light emitting diodes; and means for measuring a time for the capacitance of each of the first subset of light emitting diodes to discharge due to photocurrent induced by incident light on the first subset of light emitting diodes, the time being inversely proportional to an intensity of the incident light.