When i wake up how do i get wakeup pin

maxbear
Posts: 2
Joined: Tue Aug 29, 2017 9:19 am

When i wake up how do i get wakeup pin

Postby maxbear » Wed Jun 06, 2018 10:24 am

Hi,

I am using ESP-IDF to building my project, and i using esp_deep_sleep_enable_ext1_wakeup() to do deep sleep on two pin like this :

esp_deep_sleep_enable_ext1_wakeup(GPIO_NUM_34 | GPIO_NUM_35, ESP_EXT1_WAKEUP_ANY_HIGH)

when i wake up, can i get which one is pressed ?

Who is online

Users browsing this forum: No registered users and 170 guests