Hi,
I am trying to detect if the user is still touching the pin T2 after ESP32 wakes up.
touchAttachInterrupt(T2, callback, Threshold);
Since I cannot use digitalRead(T2)==LOW because this pin it is not HIGH or LOW, it is threshold based.
I would like to use the same pin for touch wakeup and when device wakes up I would like to detect that the pin is still touched for 2 seconds etc. and do something.
Any ideas?
Thanks