TSL2561 Class
- ID: tsl2561
- Name: Digital Light Sensor
- Other Names: Grove Digital Light Sensor
- Category: light
- Manufacturer: seeed
- Link: http://www.seeedstudio.com/wiki/Grove_-_Digital_Light_Sensor
- Connection: i2c
- Kit: eak
TSL2560 and TSL2561 are light-to-digital converters that transform light intensity to a digital signal output capable of a direct I2C ( TSL2561 ) interface
Methods
TSL2561
(
Number
-
bus
-
devAddr
-
gain
-
integrationTime
Instantiates a TSL2561 object
Parameters:
-
bus
NumberNumber of the used bus
-
devAddr
NumberAddress of the used I2C device
-
gain
NumberCorrect gain to use
-
integrationTime
NumberTime to keep the shutter open
Returns:
Number:
getLux
()
Number
Gets the calculated lux reading from TSL2561
Returns:
Number:
Calculated lux value from the sensor