]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Top level package now defines only uart and spi ports. pin submodule handles pins
authorCefn Hoile <github.com@cefn.com>
Sat, 24 Feb 2018 21:07:28 +0000 (21:07 +0000)
committerCefn Hoile <github.com@cefn.com>
Sat, 24 Feb 2018 21:07:28 +0000 (21:07 +0000)
python/microcontroller/__init__.py

index d9653ed2d7d4f3307030a3aa49d2c8e1fe1a67bb..7a0491be257b76558354d1d88a49cd2df8f2e038 100644 (file)
@@ -8,8 +8,8 @@ class Pin(Enum):
     pass
 
 if agnostic.microcontroller == "esp8266":
-    from microcontroller.esp8266 import pin
+    from microcontroller.esp8266 import *
 elif agnostic.microcontroller == "stm32":
-    from microcontroller.stm32 import pin
+    from microcontroller.stm32 import *
 else:
     raise NotImplementedError("Microcontroller not supported")
\ No newline at end of file