restoring gpio to normal after waking up from deep sleep

KaranRaj
Posts: 16
Joined: Wed Jan 16, 2019 5:43 am

restoring gpio to normal after waking up from deep sleep

Postby KaranRaj » Tue Feb 19, 2019 7:13 am

Hi!
So in order to save power during deep-sleep, I've added the rtc_gpio_isolate(PIN_A) API like this:

Code: Select all

rtc_gpio_isolate(PIN_A);
esp_sleep_enable_ext0_wakeup(BUTTON_GPIO, 1);
esp_sleep_enable_timer_wakeup(wakeup_time_sec * 1000000);
esp_deep_sleep_start();
However, PIN_A does not respond after wake up. PIN_A is connected to an LED, I wanna turn on. How do I make this pin work after wakeup? Shouldn't the pin reset at wake-up? If I comment the rtc_gpio_isolate(PIN_A) API though, the pin works normally.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: restoring gpio to normal after waking up from deep sleep

Postby WiFive » Tue Feb 19, 2019 9:38 am


KaranRaj
Posts: 16
Joined: Wed Jan 16, 2019 5:43 am

Re: restoring gpio to normal after waking up from deep sleep

Postby KaranRaj » Tue Feb 19, 2019 10:05 am

Ah! Perfect. Got it. Thanks

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 79 guests