Code: Select all
from machine import WDT
wdt = WDT(timeout=2000) # enable it with a timeout of 2s
wdt.feed()
classmachine.WDT(id=0, timeout=5000)
Create a WDT object and start it. The timeout must be given in seconds and the minimum value that is accepted is 1 second. Once it is running the timeout cannot be changed and the WDT cannot be stopped either.
Implying that the units are seconds. So only off by about 3 orders of magnitude.
Does anyone know which is correct?