upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
API for the TSL2561 Digital Light Sensor. More...
TSL2560 and TSL2561 are light-to-digital converters that transform light intensity to a digital signal output capable of a direct I2C (TSL2561) interface
Public Member Functions | |
TSL2561 (int bus=0, uint8_t devAddr=TSL2561_Address, uint8_t gain=GAIN_0X, uint8_t integrationTime=INTEGRATION_TIME1_101MS) | |
~TSL2561 () | |
int | getLux () |
TSL2561 | ( | int | bus = 0 , |
uint8_t | devAddr = TSL2561_Address , |
||
uint8_t | gain = GAIN_0X , |
||
uint8_t | integrationTime = INTEGRATION_TIME1_101MS |
||
) |
Instantiates a TSL2561 object
bus | Number of the used bus |
devAddr | Address of the used I2C device |
gain | Correct gain to use |
integrationTime | Time to keep the shutter open |
int getLux | ( | ) |
Gets the calculated lux reading from TSL2561