Open
Description
The onDetect()
method can be used to attached interrupts so that when a touch event is detected by the GT911, the specified sub routine is ran specified by handler
in the function below.
Arduino_GigaDisplayTouch/src/Arduino_GigaDisplayTouch.cpp
Lines 173 to 177 in 4101b8a
An example of how to use the interrupt is given in Touch_IRQ.ino
example.
Arduino_GigaDisplayTouch/examples/Touch_IRQ/Touch_IRQ.ino
Lines 24 to 34 in 4101b8a
It is not possible to detach the interrupt, using the current public methods. Detaching interrupts is useful for:
- Using
delay()
- Sending data over serial, without competing with the interrupt pin
Metadata
Metadata
Assignees
Labels
No labels