10 SUB_SENSOR(illuminance)
14 void setup()
override;
15 void dump_config()
override;
16 void update()
override;
18 void set_led_drive(uint8_t level) { this->
led_drive_ = level; }
virtual void setup()
Where the component's initialization should happen.
This class simplifies creating components that periodically check a state.
bool write_reg_(uint8_t reg, uint8_t value)
This Class provides the methods to read/write bytes from/to an i2c device.
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor