【Feedback】GPIO state in deep sleep mode?

rhaenel
Posts: 6
Joined: Tue Jul 21, 2015 2:45 pm

【Feedback】GPIO state in deep sleep mode?

Postby rhaenel » Thu Jun 16, 2016 11:32 pm

Hello,

I understood that the ESP8266 is pretty much identical to "whole chip powered down", just the RTC might still be running to finally generate a pulse on GPIO16, which, if connected to RST might wake up the chip.

That said, I wonder if anyone knows whether the ESP8266 will keep its GPIO states while in deep-sleep mode.

Simple example: assume there is a LED connected to one of the GPIO4. I would like to light up the LED, then go to deep-sleep for 10 seconds, and after coming back from deep sleep, disable the LED. This can only work if the chip keeps GPIO4 high during the deep-sleep period.

Does anyone know whether this works? Or are the GPIO output states just 'undefined' during deep sleep?

Greetings,
Roland

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

【Feedback】Re: GPIO state in deep sleep mode?

Postby ESP_Rubin » Thu Jun 30, 2016 2:32 pm

Maybe it's hard for this case, since 8266 under deep-sleep mode, only RTC domain is working, we can't save the GPIO status; for your requirement, you can try light-sleep. 8266 will poweroff the CPU and RF in light-sleep

Who is online

Users browsing this forum: No registered users and 2 guests