14static const uint8_t W_REG = 0x04;
15static const uint8_t ALS_REG = 0x05;
16static const uint8_t ID_REG = 0x09;
20static const uint8_t CONFIG_REG_IT_BIT = 12;
21static const uint8_t CONFIG_REG_DG_BIT = 5;
22static const uint8_t CONFIG_REG_G_BIT = 3;
26static const uint8_t DEVICE_ID = 0x35;
27static const uint16_t SHUTDOWN_BITS = 0x0018;
31static const float LUX_MULTIPLIER_BASE = 0.00213;
65 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.
Base-class for all sensors.
void publish_state(float state)
Publish a new state to the front-end.
VEML3235ComponentIntegrationTime integration_time_
float auto_gain_threshold_high_
void set_digital_gain(VEML3235ComponentDigitalGain digital_gain)
float auto_gain_threshold_low_
VEML3235ComponentGain gain()
float auto_gain_threshold_low()
void set_power_on(bool power_on)
void adjust_gain_(uint16_t als_raw_value)
void set_integration_time(VEML3235ComponentIntegrationTime integration_time)
void set_auto_gain(bool auto_gain)
void set_auto_gain_threshold_high(float auto_gain_threshold_high)
float get_setup_priority() const override
VEML3235ComponentIntegrationTime integration_time()
void set_gain(VEML3235ComponentGain gain)
VEML3235ComponentGain gain_
void dump_config() override
void set_auto_gain_threshold_low(float auto_gain_threshold_low)
float auto_gain_threshold_high()
VEML3235ComponentDigitalGain digital_gain()
VEML3235ComponentDigitalGain digital_gain_
bool refresh_config_reg(bool force_on=false)
const float DATA
For components that import data from directly connected sensors like DHT.
VEML3235ComponentDigitalGain
@ VEML3235_DIGITAL_GAIN_2X
@ VEML3235_DIGITAL_GAIN_1X
VEML3235ComponentIntegrationTime
@ VEML3235_INTEGRATION_TIME_100MS
@ VEML3235_INTEGRATION_TIME_200MS
@ VEML3235_INTEGRATION_TIME_50MS
@ VEML3235_INTEGRATION_TIME_800MS
@ VEML3235_INTEGRATION_TIME_400MS
Providing packet encoding functions for exchanging data with a remote host.