From 4cf1b1f295bde7cf3a978426d676885ad4aaaecf Mon Sep 17 00:00:00 2001 From: linagee Date: Mon, 27 Apr 2015 10:47:34 -0600 Subject: [PATCH] Ability to wake from .deepSleep This was not immediately apparent to me. I don't think it would be apparent to anyone else just playing around with ESP8266/Arduino either. GPIO16 and RST (REST) need to be tied together or you can "never wake from .deepSleep" It must be GPIO16 and it must be RST, no other GPIO pin will wake it from deepSleep. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 61ff9be15a..0290b153ba 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ The implementation supports the entire Arduino SPI API including transactions, e APIs related to deep sleep and watchdog timer are available in the ```ESP``` object. -```ESP.deepSleep(microseconds, mode)``` will put the chip into deep sleep. ```mode``` is one of ```WAKE_DEFAULT```, ```WAKE_RFCAL```, ```WAKE_NO_RFCAL```, ```WAKE_RF_DISABLED```. +```ESP.deepSleep(microseconds, mode)``` will put the chip into deep sleep. ```mode``` is one of ```WAKE_DEFAULT```, ```WAKE_RFCAL```, ```WAKE_NO_RFCAL```, ```WAKE_RF_DISABLED```. (GPIO16 needs to be tied to RST to wake from deepSleep.) ```ESP.wdtEnable()```, ```ESP.wdtDisable()```, and ```ESP.wdtFeed()``` provide some control over the watchdog timer.