12 static const char *
const TAG =
"cst226.touchscreen";
14 static const uint8_t CST226_REG_STATUS = 0x00;
18 void setup()
override;
29 esph_log_e(TAG,
"Read data from 0x%04X failed", addr);
bool can_proceed() override
void set_reset_pin(GPIOPin *pin)
bool read16_(uint16_t addr, uint8_t *data, size_t len)
void update_touches() override
InternalGPIOPin * interrupt_pin_
No error found during execution of method.
virtual void mark_failed()
Mark this component as failed.
void dump_config() override
Implementation of SPI Controller mode.
ErrorCode read_register16(uint16_t a_register, uint8_t *data, size_t len, bool stop=true)
reads an array of bytes from a specific register in the I²C device
void set_interrupt_pin(InternalGPIOPin *pin)
This Class provides the methods to read/write bytes from/to an i2c device.