]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/microcontroller/_pin.py
Fix problems 'git stash' not actually stashing created
[Adafruit_Blinka-hackapet.git] / src / microcontroller / _pin.py
diff --git a/src/microcontroller/_pin.py b/src/microcontroller/_pin.py
deleted file mode 100644 (file)
index 0077cb0..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
-#
-# SPDX-License-Identifier: MIT
-from adafruit_blinka import Enum
-import microcontroller.pin
-
-class Pin(Enum):
-    """
-    Identifies an IO pin on the microcontroller.
-
-    They are fixed by the hardware so they cannot be constructed on demand. Instead, use board or
-    microcontroller.pin to reference the desired pin.
-    """
-
-    def __init__(self, pin_id):
-        """Identifier for pin, referencing platform-specific pin id"""
-        self.id = pin_id
-
-    def __repr__(self):
-        # pylint: disable=import-outside-toplevel, cyclic-import
-        import board
-
-        for key in dir(board):
-            if getattr(board, key) is self:
-                return "board.{}".format(key)
-        # pylint: enable=import-outside-toplevel, cyclic-import
-
-        for key in dir(microcontroller.pin):
-            if getattr(microcontroller.pin, key) is self:
-                return "microcontroller.pin.{}".format(key)
-        return repr(self)
-