Driver for the human-visible-light sensor on Tmote Invent.
Only available on Moteiv's Tmote Invent
Before use, be sure to start the sensor using the SplitControl interface. If you would like to start the sensor on system boot, use the MainControl generic component like so:
components new MainControl() as PhotoControl; components PhotoDriverC; PhotoControl.SplitControl -> PhotoDriverC;The 'ADC as Photo' interface provides raw data from the sensor.
The Potentiometer interface is used to set the gain on the output of the photo sensor. See the Tmote Invent datasheet for more information on how to compute the raw potentiometer values and corresponding gain.