ESPHome 2026.5.1
Loading...
Searching...
No Matches
tt21100_button.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome::tt21100 {
9
11 public Component,
13 public Parented<TT21100Touchscreen> {
14 public:
15 void setup() override;
16 void dump_config() override;
17
18 void set_index(uint8_t index) { this->index_ = index; }
19
20 void update_button(uint8_t index, uint16_t state) override;
21
22 protected:
23 uint8_t index_;
24};
25
26} // namespace esphome::tt21100
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
Base class for all binary_sensor-type classes.
bool state
The current state of this binary sensor. Also used as the backing storage for StatefulEntityBase.
void update_button(uint8_t index, uint16_t state) override