]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Merge branch 'master' of github.com:cefn/Adafruit_Micropython_Blinka
authorCefn Hoile <github.com@cefn.com>
Sun, 25 Feb 2018 00:34:25 +0000 (00:34 +0000)
committerCefn Hoile <github.com@cefn.com>
Sun, 25 Feb 2018 00:34:25 +0000 (00:34 +0000)
.gitignore
src/.gitignore [deleted file]
src/microcontroller.py [deleted file]
test/src/.gitignore [deleted file]

index 0915ceab650c68b60f8b3412879c3faa6347af66..cc5b9ac44a2918a5cf50f88461be14fdb8f7f428 100644 (file)
@@ -1,3 +1,4 @@
+*.mpy
 .idea
 __pycache__
 _build
diff --git a/src/.gitignore b/src/.gitignore
deleted file mode 100644 (file)
index 7b0205c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# don't mistakenly commit implementation-specific bytecode files
-*.mpy
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
diff --git a/test/src/.gitignore b/test/src/.gitignore
deleted file mode 100644 (file)
index 7b0205c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# don't mistakenly commit implementation-specific bytecode files
-*.mpy