ESPHome  2022.8.0
lilygo_t5_47_touchscreen.h
Go to the documentation of this file.
1 #pragma once
2 
7 #include "esphome/core/hal.h"
8 
9 namespace esphome {
10 namespace lilygo_t5_47 {
11 
12 struct Store {
13  volatile bool touch;
15 
16  static void gpio_intr(Store *store);
17 };
18 
19 using namespace touchscreen;
20 
22  public:
23  void setup() override;
24  void loop() override;
25  void dump_config() override;
26 
27  void set_interrupt_pin(InternalGPIOPin *pin) { this->interrupt_pin_ = pin; }
28 
29  protected:
32 };
33 
34 } // namespace lilygo_t5_47
35 } // namespace esphome
void setup()
void loop()
Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)
Definition: gpio.h:66
static void gpio_intr(Store *store)
Definition: a4988.cpp:4