modwipy.py 400 B

123456789101112131415161718192021
  1. '''
  2. wipy module test for the CC3200 based boards
  3. '''
  4. import os
  5. import wipy
  6. mch = os.uname().machine
  7. if not 'LaunchPad' in mch and not'WiPy' in mch:
  8. raise Exception('Board not supported!')
  9. print(wipy.heartbeat() == True)
  10. wipy.heartbeat(False)
  11. print(wipy.heartbeat() == False)
  12. wipy.heartbeat(True)
  13. print(wipy.heartbeat() == True)
  14. try:
  15. wipy.heartbeat(True, 1)
  16. except:
  17. print('Exception')