ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
ds3231_time.h
Go to the documentation of this file.
1#pragma once
2
6
7#include "../ds3231.h"
8
9namespace esphome::ds3231 {
10
11class DS3231Time final : public time::RealTimeClock, public Parented<DS3231Component> {
12 public:
13 void update() override;
14 void dump_config() override;
15
17 void read_time();
19 void write_time();
20};
21
22} // namespace esphome::ds3231
Helper class to easily give an object a parent of type T.
Definition helpers.h:2073
void write_time()
Store the system clock in the RTC.
void read_time()
Set the system clock from the RTC.
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.