]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/board.py
remove debug print statement
[Adafruit_Blinka-hackapet.git] / src / board.py
old mode 100644 (file)
new mode 100755 (executable)
index 707c643..4dab385
 """
 `board` - Define ids for available pins
 =================================================
-Conditionally imports and re-exports a submodule, such as boards.esp8266 based on 
-platform introspection
+
+See `CircuitPython:board` in CircuitPython for more details.
 
 * Author(s): cefn
 """
+import sys
 
-import gc
-
-gc.collect()
-from adafruit_blinka.agnostic import board
-gc.collect()
-
-__version__ = "0.0.0-auto.0"
-__repo__ = "https://github.com/adafruit/Adafruit_Micropython_Blinka.git"
-
+from adafruit_blinka.agnostic import board_id
 
-if board == "feather_huzzah":
-    pass
-elif board == "feather_m0_express":
-    pass
-elif board == "nodemcu":
-    pass
-elif board == "pyboard":
+if board_id == "feather_huzzah":
+    from adafruit_blinka.board.feather_huzzah import *
+elif board_id == "nodemcu":
+    from adafruit_blinka.board.nodemcu import *
+elif board_id == "pyboard":
+    from adafruit_blinka.board.pyboard import *
+elif board_id == "raspi_2" or board_id == "raspi_3":
+    from adafruit_blinka.board.raspi_23 import *
+elif board_id == "beaglebone_black":
+    from adafruit_blinka.board.beaglebone_black import *
+elif "sphinx" in sys.modules:
     pass
 else:
     raise NotImplementedError("Board not supported")
-gc.collect()
\ No newline at end of file