Skip to content

Commit

Permalink
Merge pull request #929 from makermelissa/main
Browse files Browse the repository at this point in the history
Add Pi500 and CM5 Support
  • Loading branch information
makermelissa authored Jan 16, 2025
2 parents 1126135 + 5333af8 commit bbf328e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 1 addition & 7 deletions src/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@
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:
Expand Down
4 changes: 2 additions & 2 deletions src/neopixel_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
# pylint: disable=too-many-boolean-expressions, ungrouped-imports
import sys

from adafruit_blinka.agnostic import detector, board_id
from adafruit_blinka.agnostic import detector

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
Expand Down

0 comments on commit bbf328e

Please sign in to comment.