23 float color_temperature_offset)
28 void setup()
override;
This class simplifies creating components that periodically check a state.
This Class provides the methods to read/write bytes from/to an i2c device.
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Base-class for all sensors.
bool read_channel_(uint8_t reg, uint16_t &counts)
sensor::Sensor * illuminance_sensor_
VEML6040Component(VEML6040IntegrationTime integration_time, float glass_attenuation_factor, float color_temperature_offset)
sensor::Sensor * red_sensor_
sensor::Sensor * blue_sensor_
void set_blue_sensor(sensor::Sensor *sensor)
const float color_temperature_offset_
uint32_t integration_time_ms_() const
const float glass_attenuation_factor_
void set_color_temperature_sensor(sensor::Sensor *sensor)
void set_illuminance_sensor(sensor::Sensor *sensor)
void dump_config() override
void set_white_sensor(sensor::Sensor *sensor)
sensor::Sensor * white_sensor_
const VEML6040IntegrationTime integration_time_
sensor::Sensor * color_temperature_sensor_
sensor::Sensor * green_sensor_
void set_red_sensor(sensor::Sensor *sensor)
void set_green_sensor(sensor::Sensor *sensor)
IntegrationTime501 integration_time
@ VEML6040_INTEGRATION_TIME_1280MS
@ VEML6040_INTEGRATION_TIME_160MS
@ VEML6040_INTEGRATION_TIME_80MS
@ VEML6040_INTEGRATION_TIME_40MS
@ VEML6040_INTEGRATION_TIME_320MS
@ VEML6040_INTEGRATION_TIME_640MS