Skip to content

Commit 527c454

Browse files
committedJan 15, 2025
Add Pi500 and CM5 Support
1 parent 1126135 commit 527c454

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed
 

‎.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
- name: Translate Repo Name For Build Tools filename_prefix
1717
id: repo-name
1818
run: echo "repo-name=Adafruit-Blinka" >> $GITHUB_OUTPUT
19-
- name: Set up Python 3.7
19+
- name: Set up Python 3.8
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: 3.7
22+
python-version: 3.8
2323
- name: Versions
2424
run: |
2525
python3 --version

‎src/board.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@
4141
elif board_id == ap_board.RASPBERRY_PI_PICO:
4242
from adafruit_blinka.board.raspberrypi.pico import *
4343

44-
elif (
45-
detector.board.RASPBERRY_PI_4B
46-
or detector.board.RASPBERRY_PI_CM4
47-
or detector.board.RASPBERRY_PI_CM4S
48-
or detector.board.RASPBERRY_PI_400
49-
or detector.board.RASPBERRY_PI_5
50-
):
44+
elif detector.board.any_raspberry_pi_4_board or detector.board.any_raspberry_pi_5_board:
5145
from adafruit_blinka.board.raspberrypi.raspi_4b import *
5246

5347
elif detector.board.any_raspberry_pi_40_pin:

‎src/neopixel_write.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from adafruit_blinka.agnostic import detector, board_id
1717

1818
if detector.board.any_raspberry_pi:
19-
if board_id == "RASPBERRY_PI_5":
19+
if detector.board.any_raspberry_pi_5_board:
2020
import adafruit_raspberry_pi5_neopixel_write as _neopixel
2121
else:
2222
from adafruit_blinka.microcontroller.bcm283x import neopixel as _neopixel

0 commit comments

Comments
 (0)
Please sign in to comment.