Skip to content

Commit 1ca5838

Browse files
marcelstoerdevyte
authored andcommitted
Add ESP.deepSleepMax() (esp8266#4627)
1 parent 3138bdf commit 1ca5838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/libraries.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ESP-specific APIs
7171

7272
Some ESP-specific APIs related to deep sleep, RTC and flash memories are available in the ``ESP`` object.
7373

74-
``ESP.deepSleep(microseconds, mode)`` will put the chip into deep sleep. ``mode`` is one of ``WAKE_RF_DEFAULT``, ``WAKE_RFCAL``, ``WAKE_NO_RFCAL``, ``WAKE_RF_DISABLED``. (GPIO16 needs to be tied to RST to wake from deepSleep.)
74+
``ESP.deepSleep(microseconds, mode)`` will put the chip into deep sleep. ``mode`` is one of ``WAKE_RF_DEFAULT``, ``WAKE_RFCAL``, ``WAKE_NO_RFCAL``, ``WAKE_RF_DISABLED``. (GPIO16 needs to be tied to RST to wake from deepSleep.) The chip can sleep for at most ``ESP.deepSleepMax()`` microseconds.
7575

7676
``ESP.rtcUserMemoryWrite(offset, &data, sizeof(data))`` and ``ESP.rtcUserMemoryRead(offset, &data, sizeof(data))`` allow data to be stored in and retrieved from the RTC user memory of the chip respectively. Total size of RTC user memory is 512 bytes, so ``offset + sizeof(data)`` shouldn't exceed 512. Data should be 4-byte aligned. The stored data can be retained between deep sleep cycles. However, the data might be lost after power cycling the chip.
7777

0 commit comments

Comments
 (0)