Measuring the RTC Timer during deep sleep

Amir_El
Posts: 17
Joined: Thu Nov 19, 2020 3:55 pm

Measuring the RTC Timer during deep sleep

Postby Amir_El » Thu Nov 11, 2021 4:55 pm

Hello, I'm driving the ESP32 into a deep sleep and enabling 2 sources to wake it up, one is the Timer & the other is one of the GPIO as a touchpad. using the

Code: Select all

esp_sleep_enable_timer_wakeup
I can set the time interval that wakes the ESP up, but how I can measure the elapsed time when the ESP is in a deep sleep and it wakes up by the touch pin (while the timer period still not finished yet)? Or how I can pause the Timer if the waking reason was not the Timer?

Who is online

Users browsing this forum: Baidu [Spider] and 85 guests