12static constexpr uint32_t GT9895_REG_FW_VERSION = 0x00010014;
13static constexpr uint32_t GT9895_REG_RUNTIME_INFO = 0x00010070;
14static constexpr size_t GT9895_FW_VERSION_SIZE = 28;
15static constexpr size_t GT9895_RUNTIME_INFO_MAX_SIZE = 1024;
18static constexpr size_t GT9895_HEADER_SIZE = 8;
19static constexpr size_t GT9895_CONTACT_SIZE = 8;
20static constexpr size_t GT9895_CHECKSUM_SIZE = 2;
21static constexpr uint8_t GT9895_MAX_TOUCHES = 10;
23static constexpr uint8_t GT9895_FIRST_READ_CONTACTS = 2;
24static constexpr uint8_t GT9895_EVENT_TOUCH = 0x80;
28 void setup()
override;
uint32_t touch_data_address_
void set_interrupt_pin(InternalGPIOPin *pin)
void update_touches() override
uint32_t firmware_version_
void dump_config() override
bool read_(uint32_t address, uint8_t *data, size_t len)
void set_reset_pin(GPIOPin *pin)
static bool checksum_ok(const uint8_t *data, size_t len)
InternalGPIOPin * interrupt_pin_
This Class provides the methods to read/write bytes from/to an i2c device.