ESPHome  2025.3.2
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
chsc6x_touchscreen.h
Go to the documentation of this file.
1 #pragma once
2 
6 #include "esphome/core/hal.h"
7 #include "esphome/core/log.h"
8 
9 namespace esphome {
10 namespace chsc6x {
11 
12 static const char *const TAG = "chsc6x.touchscreen";
13 
14 static const uint8_t CHSC6X_REG_STATUS = 0x00;
15 static const uint8_t CHSC6X_REG_STATUS_TOUCH = 0x00;
16 static const uint8_t CHSC6X_REG_STATUS_X_COR = 0x02;
17 static const uint8_t CHSC6X_REG_STATUS_Y_COR = 0x04;
18 static const uint8_t CHSC6X_REG_STATUS_LEN = 0x05;
19 static const uint8_t CHSC6X_CHIP_ID = 0x2e;
20 
22  public:
23  void setup() override;
24  void update_touches() override;
25  void dump_config() override;
26 
27  void set_interrupt_pin(InternalGPIOPin *pin) { this->interrupt_pin_ = pin; }
28 
29  protected:
31 };
32 
33 } // namespace chsc6x
34 } // namespace esphome
void set_interrupt_pin(InternalGPIOPin *pin)
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