X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/dc370ee93961ed6895f3942ba916fc70a4dfdfd7..deeac352517e6fd455eb9fcc95eced45caa7dd1d:/python/agnostic.py diff --git a/python/agnostic.py b/python/agnostic.py index 1d0881d..167b4d6 100644 --- a/python/agnostic.py +++ b/python/agnostic.py @@ -11,20 +11,19 @@ try: except: microcontroller = None -# TODO switch name of platform below to be microcontroller if microcontroller is not None: if microcontroller == "esp8266": board = "feather_huzzah" elif microcontroller == "samd21": - board="feather_m0_express" + board = "feather_m0_express" elif microcontroller == "pyboard": - microcontroller= "stm32" - board="pyboard" + microcontroller = "stm32" + board = "pyboard" else: board = None implementation = sys.implementation.name if implementation == "micropython": - import utime as time + from utime import sleep, time elif implementation == "circuitpython": - import time \ No newline at end of file + from time import sleep, time