from machine import WDT

# Enable the watchdog timer with a timeout of 3s
wdt = WDT(timeout=3000)
wdt.feed()

# Print info
print('Watchdog timer started...')
print('It will cause the system reset!')

# Check it for reset
while True:
    pass

from machine import WDT

# Enable the watchdog timer with a timeout of 3s
wdt = WDT(timeout=3000)
wdt.feed()

# Print info
print('Watchdog timer started...')
print('It will cause the system reset!')

# Check it for reset
while True:
    pass

# Enable the watchdog timer with a timeout of 3s # Print info # Check it for reset