Yeah, you have to setup i2c to read the sensor.
I use an LTR-559 for auto brightness on my Interstate 75 W.
To get just the Lux, and ignore the Proximity I use the following.
reading = ltr.get_reading()
lux = reading[BreakoutLTR559.LUX]
Yeah, you have to setup i2c to read the sensor.
I use an LTR-559 for auto brightness on my Interstate 75 W.
To get just the Lux, and ignore the Proximity I use the following.
reading = ltr.get_reading()
lux = reading[BreakoutLTR559.LUX]