21 static const uint8_t MEASUREMENT_BIT_WIDTH_VALUES[] = {20, 19, 18, 17, 16, 13};
32 static const uint16_t MEASUREMENT_RATE_VALUES[] = {25, 50, 100, 200, 500, 1000, 2000};
41 static const uint8_t AMBIENT_LIGHT_GAIN_VALUES[] = {1, 3, 6, 9, 18};
45 void setup()
override;
MeasurementBitWidth bit_width_
float get_setup_priority() const override
void set_ambient_light_gain(AmbientLightGain gain)
void set_bit_width(MeasurementBitWidth bit_width)
enum esphome::apds9306::APDS9306::ErrorCode NONE
This class simplifies creating components that periodically check a state.
MeasurementRate measurement_rate_
void set_measurement_rate(MeasurementRate measurement_rate)
const float BUS
For communication buses like i2c/spi.
void dump_config() override
Implementation of SPI Controller mode.
Base-class for all sensors.
This Class provides the methods to read/write bytes from/to an i2c device.