67 void setup()
override;
void set_integration_time(TSL2561IntegrationTime integration_time)
Set the time that sensor values should be accumulated for.
float calculate_lx_(uint16_t ch0, uint16_t ch1)
float get_integration_time_ms_()
void set_gain(TSL2561Gain gain)
Set the internal gain of the sensor.
bool tsl2561_read_byte(uint8_t a_register, uint8_t *value)
void set_is_cs_package(bool package_cs)
The "CS" package of this sensor has a slightly different formula for converting the raw values...
This class simplifies creating components that periodically check a state.
This class includes support for the TSL2561 i2c ambient light sensor.
TSL2561IntegrationTime integration_time_
bool tsl2561_write_byte(uint8_t a_register, uint8_t value)
TSL2561IntegrationTime
Enum listing all conversion/integration time settings for the TSL2561.
TSL2561Gain
Enum listing all gain settings for the TSL2561.
IntegrationTime501 integration_time
float get_setup_priority() const override
void dump_config() override
Implementation of SPI Controller mode.
bool tsl2561_read_uint(uint8_t a_register, uint16_t *value)
Base-class for all sensors.
This Class provides the methods to read/write bytes from/to an i2c device.