]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/microcontroller/pin.py
s/SUPPORTED_BOARDS/EMBEDDED_LINUX_BOARDS/
[Adafruit_Blinka-hackapet.git] / src / microcontroller / pin.py
index 210954463f8f888226ea900fd6a7483f972af2df..b3dd4cae80bdce3814ece64be0bd8d39d27f3131 100755 (executable)
@@ -1,13 +1,19 @@
 """Pins named after their chip name."""
 
 from adafruit_blinka import agnostic
+import adafruit_platformdetect.chip as ap_chip
 
 # We intentionally are patching into this namespace so skip the wildcard check.
 # pylint: disable=unused-wildcard-import,wildcard-import
-
-if agnostic.microcontroller == "esp8266":
+if agnostic.chip_name == ap_chip.ESP8266:
     from adafruit_blinka.microcontroller.esp8266.pin import *
-elif agnostic.microcontroller == "stm32":
+elif agnostic.chip_name == ap_chip.STM32:
     from adafruit_blinka.microcontroller.stm32.pin import *
+elif agnostic.detect.any_raspberry_pi_or_3:
+    from adafruit_blinka.microcontroller.bcm283x.pin import *
+elif agnostic.detect.beaglebone_black:
+    from adafruit_blinka.microcontroller.am335x.pin import *
+elif agnostic.detect.orangepi_pc:
+    from adafruit_blinka.microcontroller.allwinner_h3.pin import *
 else:
-    raise NotImplementedError("Microcontroller not supported")
+    raise NotImplementedError("Board / microcontroller not supported: ", agnostic.board_name)