]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Reverted to package
authorCefn Hoile <github.com@cefn.com>
Sun, 25 Feb 2018 00:34:10 +0000 (00:34 +0000)
committerCefn Hoile <github.com@cefn.com>
Sun, 25 Feb 2018 00:34:10 +0000 (00:34 +0000)
src/microcontroller.py [deleted file]

diff --git a/src/microcontroller.py b/src/microcontroller.py
deleted file mode 100644 (file)
index 0daf1c5..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-from adafruit_blinka import Enum, agnostic
-
-
-class Pin(Enum):
-    def __init__(self, id):
-        """Identifier for pin, referencing platform-specific pin id"""
-        self.id = id
-
-    def __repr__(self):
-        import board
-        for key in dir(board):
-            if getattr(board, key) is self:
-                return "board.{}".format(key)
-        import microcontroller
-        for key in dir(microcontroller):
-            if getattr(microcontroller, key) is self:
-                return "microcontroller.{}".format(key)
-        return repr(self)
-
-
-if agnostic.microcontroller == "esp8266":
-    from adafruit_blinka.microcontroller.esp8266 import *
-elif agnostic.microcontroller == "stm32":
-    from adafruit_blinka.microcontroller.stm32 import *
-else:
-    raise NotImplementedError("Microcontroller not supported")
\ No newline at end of file