reset.py 342 B

1234567891011121314151617
  1. '''
  2. Reset script for the cc3200 boards
  3. This is needed to force the board to reboot
  4. with the default WLAN AP settings
  5. '''
  6. from machine import WDT
  7. import time
  8. import os
  9. mch = os.uname().machine
  10. if not 'LaunchPad' in mch and not 'WiPy' in mch:
  11. raise Exception('Board not supported!')
  12. wdt = WDT(timeout=1000)
  13. print(wdt)
  14. time.sleep_ms(900)