X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/aed71ab76da4f8de5e07ebe04ef05614704e899f..2ed6f5d2c74510c8be535c2218ba74ec05a1920d:/src/board.py diff --git a/src/board.py b/src/board.py old mode 100644 new mode 100755 index 536bc6b..d1c04c4 --- a/src/board.py +++ b/src/board.py @@ -22,16 +22,14 @@ """ `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() if board == "feather_huzzah": from adafruit_blinka.board.feather_huzzah import * @@ -39,6 +37,7 @@ elif board == "nodemcu": from adafruit_blinka.board.nodemcu import * elif board == "pyboard": from adafruit_blinka.board.pyboard import * +elif "sphinx" in sys.modules: + pass else: raise NotImplementedError("Board not supported") -gc.collect()