summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32
diff options
context:
space:
mode:
authorMike Causer <mcauser@gmail.com>2021-04-30 14:03:16 +1000
committerDamien George <damien@micropython.org>2021-05-06 15:46:28 +1000
commita65942a41d5bedd80b0098b1578680e72bef384b (patch)
tree9f8c0f53ff25ff653cf88ad9d61e6ca73cf79928 /docs/esp32
parentb98197f950b572aff2a34934e64d094e5cea6cd5 (diff)
downloadmicropython-a65942a41d5bedd80b0098b1578680e72bef384b.tar.gz
micropython-a65942a41d5bedd80b0098b1578680e72bef384b.zip
docs/esp32: Add WDT to quickref.
Diffstat (limited to 'docs/esp32')
-rw-r--r--docs/esp32/quickref.rst11
1 files changed, 11 insertions, 0 deletions
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 <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
---------------