docs/esp32: Add WDT to quickref.

This commit is contained in:
Mike Causer 2021-04-30 14:03:16 +10:00 committed by Damien George
parent b98197f950
commit a65942a41d
1 changed files with 11 additions and 0 deletions

View File

@ -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((2017, 8, 23, 1, 12, 48, 0, 0)) # set a specific date and time
rtc.datetime() # get 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 Deep-sleep mode
--------------- ---------------