|
upm
0.2.0
Sensor/Actuator repository for libmraa (v0.6.1)
|
TSL2561 Digital Light Sensor library. More...
The LIGHT-TO-DIGITAL CONVERTER TAOS-TSL2561 The TSL2560 and TSL2561 are light-to-digital converters that transform light intensity to a digital signal output capable of direct I2C (TSL2561)
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 |
||
| ) |
Instanciates a TSL2561 object
| bus | number of used bus |
| devAddr | address of used i2c device |
| gain | the correct gain to use |
| integration | time to use |
| int getLux | ( | ) |
Get calculated lux reading from TSL2561
1.8.9.1