ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
rx8130.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::rx8130 {
8
10 public:
11 void setup() override;
12 void update() override;
13 void dump_config() override;
14 void read_time();
15 void write_time();
16
17 protected:
18 void stop_(bool stop);
19};
20
21template<typename... Ts> class WriteAction : public Action<Ts...>, public Parented<RX8130Component> {
22 public:
23 void play(const Ts... x) override { this->parent_->write_time(); }
24};
25
26template<typename... Ts> class ReadAction : public Action<Ts...>, public Parented<RX8130Component> {
27 public:
28 void play(const Ts... x) override { this->parent_->read_time(); }
29};
30
31} // namespace esphome::rx8130
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
void play(const Ts... x) override
Definition rx8130.h:28
void play(const Ts... x) override
Definition rx8130.h:23
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
uint16_t x
Definition tt21100.cpp:5