ESPHome 2025.5.0
Loading...
Searching...
No Matches
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
9namespace esphome {
10namespace chsc6x {
11
12static const char *const TAG = "chsc6x.touchscreen";
13
14static const uint8_t CHSC6X_REG_STATUS = 0x00;
15static const uint8_t CHSC6X_REG_STATUS_TOUCH = 0x00;
16static const uint8_t CHSC6X_REG_STATUS_X_COR = 0x02;
17static const uint8_t CHSC6X_REG_STATUS_Y_COR = 0x04;
18static const uint8_t CHSC6X_REG_STATUS_LEN = 0x05;
19static 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
28
29 protected:
31};
32
33} // namespace chsc6x
34} // namespace esphome
void set_interrupt_pin(InternalGPIOPin *pin)
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7