実験 WDT @Pico,Thonny,Lubuntu22.04
★2209031955 WDT.py
import machine,time
LED= machine.Pin(25, machine.Pin.OUT)
WDT= machine.WDT(timeout=2000) #2sec
while 1:
WDT.feed() #clear WDT
time.sleep(0.1); LED.value(1)
time.sleep(0.1); LED.value(0)
time.sleep(0.1); LED.value(1)
time.sleep(0.1); LED.value(0)
time.sleep(1.7) #OK:0.5 1.4 1.5 #NG:1.6 1.7 2