66#if (defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_STM32)) && !defined(ARDUINO_ARCH_MBED)
70#elif defined(ARDUINO_ARCH_NRF52)
73#elif defined(ARDUINO_ARCH_ESP32)
80 SensorWireHelper::dumpDevices(Wire);
83 uint8_t touchAddress = 0x5A;
92 if (result ==
false) {
93 Serial.println(
"touch is not online...");
99 Serial.print(millis());
100 Serial.println(
" : The screen is covered");
142 Serial.print(point.
x);
147 Serial.print(point.
y);
void setCoverScreenCallback(HomeButtonCallback cb, void *user_data=NULL)
Set the cover screen callback.
const char * getModelName() override
Get the model name.
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.
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.