10 void setup()
override;
22 void set_time_(
const ESPTime &time);
23 void set_date_(
const ESPTime &time);
25 void set_timer_irq_(uint32_t duration_s);
29 void write_byte_(uint8_t
reg, uint8_t value);
30 void write_register_(uint8_t
reg,
const uint8_t *
data,
size_t len);
33 uint8_t bcd2_to_byte_(uint8_t value);
34 uint8_t byte_to_bcd2_(uint8_t value);
39 void play(
const Ts &...
x)
override { this->
parent_->write_time(); }
51 void play(
const Ts &...
x)
override {
52 auto duration = this->duration_.value(
x...);
virtual void play(const Ts &...x)=0
Helper class to easily give an object a parent of type T.
void dump_config() override
void start_timer(uint32_t duration_s)
void play(const Ts &...x) override
TEMPLATABLE_VALUE(uint32_t, duration) void play(const Ts &...x) override
void play(const Ts &...x) override
This Class provides the methods to read/write bytes from/to an i2c device.
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
A more user-friendly version of struct tm from time.h.