TSL2561
I2C Luminosity sensor
Supported
interfaces
Python Constructor
Use following constructors if you want to create a TSL2561 from your
python scripts.
- TSL2561(slave, time, gain)
- TSL2561T(slave, time, gain)
- TSL2561CS(slave, time, gain)
Parameters:
-
slave (optional, default=0x39) : I2C slave address (0x29, 0x39, 0x49)
-
time (optional, default=402) : Integration time in ms (402, 101, 14)
- gain (optional, default=1) : Extra gain factor (1, 16)
from webiopi.devices.sensor import TSL2561
tsl = TSL2561()
Configuration File syntax
Use following syntax to setup a TSL2561 in the webiopi service/command
configuration file.
[DEVICES]
tsl = TSL2561