From: Melissa LeBlanc-Williams Date: Wed, 15 Jan 2025 21:19:14 +0000 (-0800) Subject: Add Pi500 and CM5 Support X-Git-Tag: 8.51.0^2~1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/527c4543196b4d1ad600a7caf7058251bb09e3ee Add Pi500 and CM5 Support --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ea5eab5..80940d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,10 +16,10 @@ jobs: - name: Translate Repo Name For Build Tools filename_prefix id: repo-name run: echo "repo-name=Adafruit-Blinka" >> $GITHUB_OUTPUT - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: 3.8 - name: Versions run: | python3 --version diff --git a/src/board.py b/src/board.py index c0d141e..5a85cc7 100644 --- a/src/board.py +++ b/src/board.py @@ -41,13 +41,7 @@ elif board_id == ap_board.PYBOARD: elif board_id == ap_board.RASPBERRY_PI_PICO: from adafruit_blinka.board.raspberrypi.pico import * -elif ( - detector.board.RASPBERRY_PI_4B - or detector.board.RASPBERRY_PI_CM4 - or detector.board.RASPBERRY_PI_CM4S - or detector.board.RASPBERRY_PI_400 - or detector.board.RASPBERRY_PI_5 -): +elif detector.board.any_raspberry_pi_4_board or detector.board.any_raspberry_pi_5_board: from adafruit_blinka.board.raspberrypi.raspi_4b import * elif detector.board.any_raspberry_pi_40_pin: diff --git a/src/neopixel_write.py b/src/neopixel_write.py index 641a202..7b3c808 100644 --- a/src/neopixel_write.py +++ b/src/neopixel_write.py @@ -16,7 +16,7 @@ import sys from adafruit_blinka.agnostic import detector, board_id if detector.board.any_raspberry_pi: - if board_id == "RASPBERRY_PI_5": + if detector.board.any_raspberry_pi_5_board: import adafruit_raspberry_pi5_neopixel_write as _neopixel else: from adafruit_blinka.microcontroller.bcm283x import neopixel as _neopixel