ESPHome  2024.11.1
ektf2232.h
Go to the documentation of this file.
1 #pragma once
2 
7 #include "esphome/core/hal.h"
8 
9 namespace esphome {
10 namespace ektf2232 {
11 
12 using namespace touchscreen;
13 
15  public:
16  void setup() override;
17  void dump_config() override;
18 
19  void set_interrupt_pin(InternalGPIOPin *pin) { this->interrupt_pin_ = pin; }
20  void set_rts_pin(GPIOPin *pin) { this->rts_pin_ = pin; }
21 
22  void set_power_state(bool enable);
23  bool get_power_state();
24 
25  protected:
26  void hard_reset_();
27  bool soft_reset_();
28  void update_touches() override;
29 
32 };
33 
34 } // namespace ektf2232
35 } // namespace esphome
void setup()
void set_interrupt_pin(InternalGPIOPin *pin)
Definition: ektf2232.h:19
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133