sleep + touchpad + Arduino mix. Is ISR needed?

mezzynine
Posts: 12
Joined: Fri Feb 07, 2020 8:05 am

sleep + touchpad + Arduino mix. Is ISR needed?

Postby mezzynine » Sun Sep 26, 2021 1:24 pm

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!

Who is online

Users browsing this forum: No registered users and 166 guests