From: Cefn Hoile Date: Sun, 18 Feb 2018 20:29:59 +0000 (+0000) Subject: Populated draft switch statements X-Git-Tag: 0.1.0~4^2~110 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/c5ca3bb2c00cce50569183571bff34052d3cbdad?ds=inline Populated draft switch statements --- diff --git a/python/board/__init__.py b/python/board/__init__.py index c539725..f41e27d 100644 --- a/python/board/__init__.py +++ b/python/board/__init__.py @@ -29,11 +29,17 @@ platform introspection """ import sys +from agnostic import board __version__ = "0.0.0-auto.0" __repo__ = "https://github.com/adafruit/Adafruit_Micropython_Blinka.git" -if sys.platform == "esp8266": - from boards.esp8266 import * -elif sys.platform == "pyboard": - from boards.pyboard import * + +if board == "feather_huzzah": + from board.feather_huzzah import * +elif board == "feather_m0_express": + from board.feather_m0_express import * +elif board == "nodemcu": + from board.nodemcu import * +elif board == "pyboard": + from board.pyboard import *