ESPHome 2025.5.0
Loading...
Searching...
No Matches
gt911_button.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome {
9namespace gt911 {
10
12 public Component,
14 public Parented<GT911Touchscreen> {
15 public:
16 void setup() override;
17 void dump_config() override;
18
19 void set_index(uint8_t index) { this->index_ = index; }
20
21 void update_button(uint8_t index, bool state) override;
22
23 protected:
24 uint8_t index_;
25};
26
27} // namespace gt911
28} // namespace esphome
Helper class to easily give an object a parent of type T.
Definition helpers.h:538
Base class for all binary_sensor-type classes.
bool state
The current reported state of the binary sensor.
void update_button(uint8_t index, bool state) override
void set_index(uint8_t index)
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7