ESPHome 2026.5.1
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::chsc6x {
10
11static const char *const TAG = "chsc6x.touchscreen";
12
13static const uint8_t CHSC6X_REG_STATUS = 0x00;
14static const uint8_t CHSC6X_REG_STATUS_TOUCH = 0x00;
15static const uint8_t CHSC6X_REG_STATUS_X_COR = 0x02;
16static const uint8_t CHSC6X_REG_STATUS_Y_COR = 0x04;
17static const uint8_t CHSC6X_REG_STATUS_LEN = 0x05;
18static const uint8_t CHSC6X_CHIP_ID = 0x2e;
19
21 public:
22 void setup() override;
23 void update_touches() override;
24 void dump_config() override;
25
27
28 protected:
30};
31
32} // namespace esphome::chsc6x
void set_interrupt_pin(InternalGPIOPin *pin)
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132