TTGO_TWatch_Library
TTGO_TWatch_Library copied to clipboard
Watch 2020 V2 / attachinterrupt and touchsreen
Bonjour everybody,
I try to call the ToucheEcran subroutine with this interrupt, but it does'nt works.
const byte interruptPin = 38; pinMode(interruptPin, INPUT_PULLUP); attachInterrupt (digitalPinToInterrupt(interruptPin), ToucheEcran, CHANGE);
I have understand that the touch screen interrupt is on pin 38.
Could you please tel me what is wrong.
The classic command ttgo->getTouch(x,y)
works, but I would like to try to get a faster result using attachInterrup.
Merci. FX