Reclaim GPIO after deep sleep reset

jeremy
Posts: 4
Joined: Tue Jan 15, 2019 11:36 pm

Reclaim GPIO after deep sleep reset

Postby jeremy » Tue Jan 15, 2019 11:41 pm

Hi,

I'm having issues with using the LEDC timer to drive a gpio wherein if I isolate the RTC gpio before deep sleep, after wakeup the pin is still disconnected and is unable to be controlled by the LEDC peripheral. I don't have any errors or anything, the pin simply does nothing.

This is how I am isolating the pin:

Code: Select all

rtc_gpio_isolate(GPIO_NUM_18);
I seem to recall that there is a function which "un-isolates" the pin, but I am unable to find it. Could someone please help point me in the right direction?

Thanks,
Jeremy

ESP_houwenxiang
Posts: 118
Joined: Tue Jun 26, 2018 3:09 am

Re: Reclaim GPIO after deep sleep reset

Postby ESP_houwenxiang » Sun Jan 20, 2019 4:44 am

Hi, Jeremy
please call `rtc_gpio_hold_dis` to disable the gpio hold function first, the `rtc_gpio_isolate` have enabled the gpio hold functon and the gpio status can not be changed if this function is setted.

thanks !!
wookooho

Who is online

Users browsing this forum: No registered users and 418 guests