X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/5f6bb4e415c72e5d416da99a1b116de1644bcff5..2ed6f5d2c74510c8be535c2218ba74ec05a1920d:/src/board.py?ds=sidebyside diff --git a/src/board.py b/src/board.py old mode 100644 new mode 100755 index cd0390b..d1c04c4 --- a/src/board.py +++ b/src/board.py @@ -22,21 +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() - -__version__ = "0.0.0-auto.0" -__repo__ = "https://github.com/adafruit/Adafruit_Micropython_Blinka.git" - if board == "feather_huzzah": from adafruit_blinka.board.feather_huzzah import * @@ -44,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() \ No newline at end of file