From: Cefn Hoile Date: Sun, 25 Feb 2018 00:34:10 +0000 (+0000) Subject: Reverted to package X-Git-Tag: 0.1.0~4^2~25 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/69419947ae5c921e61115189b6ffa393c40a1e74?ds=inline Reverted to package --- diff --git a/src/microcontroller.py b/src/microcontroller.py deleted file mode 100644 index 0daf1c5..0000000 --- a/src/microcontroller.py +++ /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