Skip to content

Commit

Permalink
docs/esp32: Add WDT to quickref.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcauser authored and dpgeorge committed May 6, 2021
1 parent b98197f commit a65942a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/esp32/quickref.rst
Expand Up @@ -384,6 +384,17 @@ See :ref:`machine.RTC <machine.RTC>` ::
rtc.datetime((2017, 8, 23, 1, 12, 48, 0, 0)) # set a specific date and time
rtc.datetime() # get date and time

WDT (Watchdog timer)
--------------------

See :ref:`machine.WDT <machine.WDT>`. ::

from machine import WDT

# enable the WDT with a timeout of 5s (1s is the minimum)
wdt = WDT(timeout=5000)
wdt.feed()

Deep-sleep mode
---------------

Expand Down

0 comments on commit a65942a

Please sign in to comment.