Driver for an AMS TSL2561 ambient light sensor.
All correct at time of writing, but as always, manufacturers love to move things around on their website.
This code has been tested using a JeeLabs Lux Plug:
This was installed on a JeeLabs Plug Shield:
And finally installed on a SolderCore:
|TSL2561_I2C_ADDR_FLOAT||TSL2561 8-bit I2C address for ADDRSEL floating|
|TSL2561_I2C_ADDR_GND||TSL2561 8-bit I2C address for ADDRSEL grounded|
|TSL2561_I2C_ADDR_VDD||TSL2561 8-bit I2C address for ADDRSEL tied to Vdd|
|TSL2561_DRIVER_t||TSL2561 light sensor|
|tsl2561_initialize_i2c||Initialize sensor on I2C bus|
|tsl2561_set_integration_time||Set sensor integration time|