-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 *