kopia lustrzana https://github.com/micropython/micropython
docs/esp8266: Add WDT to quickref.
rodzic
a111889705
commit
64aebed70e
|
@ -293,6 +293,17 @@ See :ref:`machine.RTC <machine.RTC>` ::
|
||||||
(using a custom handler), `RTC.init()` and `RTC.deinit()` are
|
(using a custom handler), `RTC.init()` and `RTC.deinit()` are
|
||||||
currently not supported.
|
currently not supported.
|
||||||
|
|
||||||
|
WDT (Watchdog timer)
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
See :ref:`machine.WDT <machine.WDT>`. ::
|
||||||
|
|
||||||
|
from machine import WDT
|
||||||
|
|
||||||
|
# enable the WDT
|
||||||
|
wdt = WDT()
|
||||||
|
wdt.feed()
|
||||||
|
|
||||||
Deep-sleep mode
|
Deep-sleep mode
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue