54 void setup()
override;
64 data = (uint16_t(buffer[1]) << 8) | (uint16_t(buffer[0]) & 0xFF);
84 void calculate_temperature_and_lux_(uint16_t r, uint16_t g, uint16_t b, uint16_t c);
85 uint16_t integration_reg_;
void set_integration_time(TCS34725IntegrationTime integration_time)
void set_color_temperature_sensor(sensor::Sensor *color_temperature_sensor)
ErrorCode read_register(uint8_t a_register, uint8_t *data, size_t len, bool stop=true)
reads an array of bytes from a specific register in the I²C device
i2c::ErrorCode write_config_register_(uint8_t a_register, uint8_t data)
sensor::Sensor * clear_sensor_
void set_glass_attenuation_factor(float ga)
This class simplifies creating components that periodically check a state.
void set_clear_sensor(sensor::Sensor *clear_sensor)
void set_green_sensor(sensor::Sensor *green_sensor)
sensor::Sensor * blue_sensor_
sensor::Sensor * green_sensor_
void set_illuminance_sensor(sensor::Sensor *illuminance_sensor)
void set_gain(TCS34725Gain gain)
void set_blue_sensor(sensor::Sensor *blue_sensor)
No error found during execution of method.
sensor::Sensor * color_temperature_sensor_
IntegrationTime501 integration_time
void set_red_sensor(sensor::Sensor *red_sensor)
bool integration_time_auto_
Implementation of SPI Controller mode.
float get_setup_priority() const override
sensor::Sensor * illuminance_sensor_
ErrorCode write_register(uint8_t a_register, const uint8_t *data, size_t len, bool stop=true)
writes an array of bytes to a specific register in the I²C device
i2c::ErrorCode read_data_register_(uint8_t a_register, uint16_t &data)
sensor::Sensor * red_sensor_
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.
Base-class for all sensors.
void dump_config() override
This Class provides the methods to read/write bytes from/to an i2c device.