|
upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.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 | |
| synchronized void | delete () |
| TSL2561 (int bus, short devAddr, short gain, short integrationTime) | |
| TSL2561 (int bus, short devAddr, short gain) | |
| TSL2561 (int bus, short devAddr) | |
| TSL2561 (int bus) | |
| int | getLux () |
| TSL2561 | ( | int | bus, |
| short | devAddr, | ||
| short | gain, | ||
| short | integrationTime | ||
| ) |
Instantiates a TSL2561 object
| bus | Number of the used bus |
| devAddr | Address of the used I2C device |
| gain | Correct gain to use |
| integration | Time to use |
| int getLux | ( | ) |
Gets the calculated lux reading from TSL2561
1.8.9.1