Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By rhaenel
#49278 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
User avatar
By schufti
#49291 Hi,
according to the datasheet this behaviour is programmable
Code: Select all§4.1: For low power operations, the GPIOs can also be set to hold their state. For instance, when the
chip is powered down, all output enable signals can be set to hold low. 

... but I have absolutely no idea what is a) default b) set in the arduino IDE.