12static const char *
const TAG =
"cst816.touchscreen";
15static const uint8_t REG_TOUCH_NUM = 0x02;
16static const uint8_t REG_XPOS_HIGH = 0x03;
17static const uint8_t REG_XPOS_LOW = 0x04;
18static const uint8_t REG_YPOS_HIGH = 0x05;
19static const uint8_t REG_YPOS_LOW = 0x06;
20static const uint8_t REG_DIS_AUTOSLEEP = 0xFE;
21static const uint8_t REG_CHIP_ID = 0xA7;
22static const uint8_t REG_FW_VERSION = 0xA9;
23static const uint8_t REG_SLEEP = 0xE5;
24static const uint8_t REG_IRQ_CTL = 0xFA;
25static const uint8_t IRQ_EN_MOTION = 0x70;
27static const uint8_t CST826_CHIP_ID = 0x11;
28static const uint8_t CST820_CHIP_ID = 0xB7;
29static const uint8_t CST816S_CHIP_ID = 0xB4;
30static const uint8_t CST816D_CHIP_ID = 0xB6;
31static const uint8_t CST816T_CHIP_ID = 0xB5;
32static const uint8_t CST716_CHIP_ID = 0x20;
41 void setup()
override;
void set_interrupt_pin(InternalGPIOPin *pin)
void dump_config() override
InternalGPIOPin * interrupt_pin_
void set_skip_probe(bool skip_probe)
void update_touches() override
void set_reset_pin(GPIOPin *pin)
This Class provides the methods to read/write bytes from/to an i2c device.
Providing packet encoding functions for exchanging data with a remote host.