14 static const uint8_t W_REG = 0x04;
15 static const uint8_t ALS_REG = 0x05;
16 static const uint8_t ID_REG = 0x09;
20 static const uint8_t CONFIG_REG_IT_BIT = 12;
21 static const uint8_t CONFIG_REG_DG_BIT = 5;
22 static const uint8_t CONFIG_REG_G_BIT = 3;
26 static const uint8_t DEVICE_ID = 0x35;
27 static const uint16_t SHUTDOWN_BITS = 0x0018;
31 static const float LUX_MULTIPLIER_BASE = 0.00213;
65 void setup()
override;
float auto_gain_threshold_high_
const float DATA
For components that import data from directly connected sensors like DHT.
void adjust_gain_(uint16_t als_raw_value)
float auto_gain_threshold_low()
void set_integration_time(VEML3235ComponentIntegrationTime integration_time)
void set_auto_gain_threshold_low(float auto_gain_threshold_low)
VEML3235ComponentGain gain()
VEML3235ComponentIntegrationTime integration_time_
This class simplifies creating components that periodically check a state.
void set_power_on(bool power_on)
void set_auto_gain_threshold_high(float auto_gain_threshold_high)
VEML3235ComponentDigitalGain digital_gain_
bool refresh_config_reg(bool force_on=false)
void set_gain(VEML3235ComponentGain gain)
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
VEML3235ComponentDigitalGain digital_gain()
VEML3235ComponentIntegrationTime
VEML3235ComponentIntegrationTime integration_time()
float auto_gain_threshold_low_
VEML3235ComponentDigitalGain
Implementation of SPI Controller mode.
VEML3235ComponentGain gain_
Base-class for all sensors.
float auto_gain_threshold_high()
void set_auto_gain(bool auto_gain)
void set_digital_gain(VEML3235ComponentDigitalGain digital_gain)
This Class provides the methods to read/write bytes from/to an i2c device.
float get_setup_priority() const override