WDG
1 2 3 4 5 6 7 8 9 10 11 12
# coding=utf-8 # This is a sample Python script. import utime from driver import WDG print("-------------------wdg test--------------------") wdg = WDG() wdg.open() wdg.start(3000) #utime.sleep_ms(4000) wdg.feed() wdg.close()
open
打开并创建WDG实例
close
关闭WDG实例
start
启动看门狗,并设置超时时间
stop
停止看门狗
feed
重置看门狗