63 Serial.println(
"Failed to find GT9895 - check your wiring!");
68 Serial.print(
"Chip ID : 0x"); Serial.println(
touch.
getChipID(), HEX);
111 Serial.print(point.
x);
116 Serial.print(point.
y);
const TouchPoints & getTouchPoints() override
Get the touch points.
virtual bool begin(SensorCommCustom::CustomCallback callback, SensorCommCustomHal::CustomHalCallback hal_callback, uint8_t addr)
Initialize the touch driver with custom communication callbacks.
virtual void setPins(int rst, int irq)
Set the hardware reset and interrupt pin numbers.
virtual uint32_t getChipID()
Get the chip identifier (e.g., ID register value).
Container for touch point data and optional gesture information.
uint8_t getPointCount() const
Returns the number of stored touch points.
TouchPoint & getPoint(uint8_t index)
Gets a reference to a touch point at the specified index.
bool hasPoints() const
Checks whether any touch points are stored.
Represents a single touch point with its properties.
uint16_t x
X coordinate of the touch point.
uint16_t y
Y coordinate of the touch point.