Add better error message and explicity add to setup
or b"brcm,bcm2711" in compat
):
board_reqs = ["RPi.GPIO", "rpi_ws281x>=4.0.0", "sysv_ipc>=1.1.0"]
+ if (
+ b"ti,am335x" in compat
+ ): # BeagleBone Black, Green, PocketBeagle, BeagleBone AI, etc.
+ board_reqs = ["Adafruit_BBIO"]
setup(
name="Adafruit-Blinka",
#
# SPDX-License-Identifier: MIT
"""AM335x pin names"""
-from Adafruit_BBIO import GPIO
+try:
+ from Adafruit_BBIO import GPIO
+except ImportError as error:
+ raise RuntimeError(
+ "The library 'Adafruit_BBIO' was not found. To install, try typing: "
+ "pip install Adafruit_BBIO"
+ ) from error
class Pin: