ESPHome  2024.5.0
gt911_button.h
Go to the documentation of this file.
1 #pragma once
2 
6 #include "esphome/core/helpers.h"
7 
8 namespace esphome {
9 namespace gt911 {
10 
12  public Component,
13  public GT911ButtonListener,
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
void update_button(uint8_t index, bool state) override
void set_index(uint8_t index)
Definition: gt911_button.h:19
bool state
The current reported state of the binary sensor.
Definition: binary_sensor.h:61
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
Base class for all binary_sensor-type classes.
Definition: binary_sensor.h:37
Helper class to easily give an object a parent of type T.
Definition: helpers.h:525