From a65942a41d5bedd80b0098b1578680e72bef384b Mon Sep 17 00:00:00 2001 From: Mike Causer Date: Fri, 30 Apr 2021 14:03:16 +1000 Subject: [PATCH] docs/esp32: Add WDT to quickref. --- docs/esp32/quickref.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst index 2a9c8397c8..5e70275830 100644 --- a/docs/esp32/quickref.rst +++ b/docs/esp32/quickref.rst @@ -384,6 +384,17 @@ See :ref:`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 `. :: + + 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 ---------------