From: Cefn Hoile Date: Sat, 24 Feb 2018 21:50:30 +0000 (+0000) Subject: Board packages now under adafruit_blinka X-Git-Tag: 0.1.0~4^2~41 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/f4f44cf730870773ff87242037bf7fd5f6acd8cd Board packages now under adafruit_blinka --- diff --git a/python/board/feather_huzzah.py b/src/adafruit_blinka/board/feather_huzzah.py similarity index 55% rename from python/board/feather_huzzah.py rename to src/adafruit_blinka/board/feather_huzzah.py index 3510f13..d32bd02 100644 --- a/python/board/feather_huzzah.py +++ b/src/adafruit_blinka/board/feather_huzzah.py @@ -1,20 +1,20 @@ -from microcontroller.esp8266 import pin +from adafruit_blinka.microcontroller.esp8266 import pin # TODO need equiv of INPUT_PULL_DOWN_16 ? see https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html -GPIO0=pin.GPIO0 -GPIO1=pin.GPIO1 -GPIO2=pin.GPIO2 -GPIO3=pin.GPIO3 -GPIO4=pin.GPIO4 -GPIO5=pin.GPIO5 -GPIO12=pin.GPIO12 -GPIO13=pin.GPIO13 -GPIO14=pin.GPIO14 -GPIO15=pin.GPIO15 -GPIO16=pin.GPIO16 +GPIO0= pin.GPIO0 +GPIO1= pin.GPIO1 +GPIO2= pin.GPIO2 +GPIO3= pin.GPIO3 +GPIO4= pin.GPIO4 +GPIO5= pin.GPIO5 +GPIO12= pin.GPIO12 +GPIO13= pin.GPIO13 +GPIO14= pin.GPIO14 +GPIO15= pin.GPIO15 +GPIO16= pin.GPIO16 -ADC=pin.TOUT +ADC= pin.TOUT MISO=GPIO12 MOSI=GPIO13 diff --git a/python/board/feather_m0_express.py b/src/adafruit_blinka/board/feather_m0_express.py similarity index 100% rename from python/board/feather_m0_express.py rename to src/adafruit_blinka/board/feather_m0_express.py diff --git a/python/board/nodemcu.py b/src/adafruit_blinka/board/nodemcu.py similarity index 100% rename from python/board/nodemcu.py rename to src/adafruit_blinka/board/nodemcu.py diff --git a/python/board/pyboard.py b/src/adafruit_blinka/board/pyboard.py similarity index 100% rename from python/board/pyboard.py rename to src/adafruit_blinka/board/pyboard.py diff --git a/python/board/__init__.py b/src/board.py similarity index 90% rename from python/board/__init__.py rename to src/board.py index b42d013..707c643 100644 --- a/python/board/__init__.py +++ b/src/board.py @@ -29,9 +29,9 @@ platform introspection """ import gc -import sys + gc.collect() -from agnostic import board +from adafruit_blinka.agnostic import board gc.collect() __version__ = "0.0.0-auto.0" @@ -39,13 +39,13 @@ __repo__ = "https://github.com/adafruit/Adafruit_Micropython_Blinka.git" if board == "feather_huzzah": - from board.feather_huzzah import * + pass elif board == "feather_m0_express": - from board.feather_m0_express import * + pass elif board == "nodemcu": - from board.nodemcu import * + pass elif board == "pyboard": - from board.pyboard import * + pass else: raise NotImplementedError("Board not supported") gc.collect() \ No newline at end of file