Page 1 of 1

When i wake up how do i get wakeup pin

Posted: Wed Jun 06, 2018 10:24 am
by maxbear
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 ?