11static const char *
const TAG =
"cst9220.touchscreen";
14static const uint16_t REG_TOUCH_DATA = 0xD000;
15static const uint16_t REG_CMD_MODE = 0xD101;
16static const uint16_t REG_CHECKCODE = 0xD1FC;
17static const uint16_t REG_RESOLUTION = 0xD1F8;
18static const uint16_t REG_CHIP_INFO = 0xD204;
20static const uint8_t TOUCH_ACK = 0xAB;
21static const uint8_t TOUCH_EVENT_DOWN = 0x06;
23static const uint16_t CST9220_CHIP_ID = 0x9220;
24static const uint16_t CST9217_CHIP_ID = 0x9217;
27static const uint8_t CST9220_MAX_TOUCHES = 5;
29static const size_t CST9220_DATA_LENGTH = CST9220_MAX_TOUCHES * 5 + 5;
33 void setup()
override;
void update_touches() override
InternalGPIOPin * interrupt_pin_
void set_reset_pin(GPIOPin *pin)
void set_interrupt_pin(InternalGPIOPin *pin)
void dump_config() override
This Class provides the methods to read/write bytes from/to an i2c device.