adafruit_tsl2561
¶
CircuitPython driver for TSL2561 Light Sensor.
Author(s): Carter Nelson
Implementation Notes¶
Hardware:
Adafruit TSL2561 Digital Luminosity/Lux/Light Sensor Breakout (Product ID: 439)
Adafruit STEMMA - TSL2561 Digital Lux / Light Sensor (Product ID: 3611)
Adafruit Flora Lux Sensor - TSL2561 Light Sensor (Product ID: 1246)
Software and Dependencies:
Adafruit CircuitPython firmware for the ESP8622 and M0-based boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class adafruit_tsl2561.TSL2561(i2c: I2C, address: int = 57)[source]¶
Class which provides interface to TSL2561 light sensor.
- property cycles: int¶
The number of integration cycles for which an out of bounds value must persist to cause an interrupt.
- property interrupt_mode: int¶
The interrupt mode selection.
Mode
Description
0
Interrupt output disabled
1
Level Interrupt
2
SMBAlert compliant
3
Test Mode