Page 1 of 1

sleep + touchpad + Arduino mix. Is ISR needed?

Posted: Sun Sep 26, 2021 1:24 pm
by mezzynine
Hi,

I'm running a mix of Arduino and ESP32 native API code. The touchpad wakes the ESP32 from deep sleep by using

Code: Select all

esp_sleep_enable_touchpad_wakeup()
. And then

Code: Select all

setup()
(Arduino) is executed. It works. I need the mix because the wake must be on TOUCH_TRIGGER_ABOVE, which Arduino doesn't have, and I also need Arduino libraries.

Therefore, does the touch ISR (

Code: Select all

touch_pad_isr_register(), touch_pad_intr_enable()
) have any use at all? Since, on wakeup,

Code: Select all

setup()
is always executed anyway and I can find the source of the wake.

Thanks!