adafruit_tsl2561

CircuitPython driver for TSL2561 Light Sensor.

  • Author(s): Carter Nelson

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_tsl2561.TSL2561(i2c, address=57)[source]

Class which provides interface to TSL2561 light sensor.

broadband

The broadband channel value.

chip_id

A tuple containing the part number and the revision number.

enabled

The state of the sensor.

gain

The gain. 0:1x, 1:16x.

infrared

The infrared channel value.

integration_time

The integration time. 0:13.7ms, 1:101ms, 2:402ms, or 3:manual

luminosity

The overall luminosity as a tuple containing the broadband channel and the infrared channel value.

lux

The computed lux value.