]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Board packages now under adafruit_blinka
authorCefn Hoile <github.com@cefn.com>
Sat, 24 Feb 2018 21:50:30 +0000 (21:50 +0000)
committerCefn Hoile <github.com@cefn.com>
Sat, 24 Feb 2018 21:50:30 +0000 (21:50 +0000)
src/adafruit_blinka/board/feather_huzzah.py [moved from python/board/feather_huzzah.py with 55% similarity]
src/adafruit_blinka/board/feather_m0_express.py [moved from python/board/feather_m0_express.py with 100% similarity]
src/adafruit_blinka/board/nodemcu.py [moved from python/board/nodemcu.py with 100% similarity]
src/adafruit_blinka/board/pyboard.py [moved from python/board/pyboard.py with 100% similarity]
src/board.py [moved from python/board/__init__.py with 90% similarity]

similarity index 55%
rename from python/board/feather_huzzah.py
rename to src/adafruit_blinka/board/feather_huzzah.py
index 3510f13b414492c7fe5b2ff39db3e847e0777434..d32bd026f2b69a68eb35395f4c406bcaf97b26c9 100644 (file)
@@ -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
similarity index 90%
rename from python/board/__init__.py
rename to src/board.py
index b42d0133869b3cf6b13f182f9b90e81b9bbf5834..707c643284d05280a08fe3d253964900764471da 100644 (file)
@@ -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