Compare commits

...

4 commits

Author SHA1 Message Date
foamyguy
1727669809
Merge pull request #8 from adafruit/ci-arm
Some checks are pending
Pip / build (ubuntu-24.04-arm, 3.11) (push) Waiting to run
Pip / build (ubuntu-24.04-arm, 3.12) (push) Waiting to run
Pip / build (ubuntu-24.04-arm, 3.13) (push) Waiting to run
pre-commit / pre-commit (push) Waiting to run
Wheels / Build SDist (push) Waiting to run
Wheels / Wheels on ubuntu-24.04-arm (push) Waiting to run
Wheels / Upload release (push) Blocked by required conditions
run CI on arm, since we target arm
2025-02-03 20:39:40 -06:00
7a57c787c6 run CI on arm, since we target arm
Some checks failed
Pip / build (ubuntu-24.04-arm, 3.11) (push) Has been cancelled
Pip / build (ubuntu-24.04-arm, 3.12) (push) Has been cancelled
Pip / build (ubuntu-24.04-arm, 3.13) (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Wheels / Build SDist (push) Has been cancelled
Wheels / Wheels on ubuntu-24.04-arm (push) Has been cancelled
Wheels / Upload release (push) Has been cancelled
See https://github.com/adafruit/Adafruit_Blinka_Raspberry_Pi5_rp1pio/pull/3
and https://github.com/pypa/cibuildwheel/issues/2257 for more
background
2025-02-03 20:12:31 -06:00
7c332582ef
Merge pull request #7 from FoamyGuy/single_panel_simpletest
single panel simpletest
2025-02-03 20:11:54 -06:00
foamyguy
443f6ee53c single panel simpletest 2025-02-03 17:57:18 -06:00
3 changed files with 39 additions and 8 deletions

View file

@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: ["ubuntu-latest"]
platform: ["ubuntu-24.04-arm"]
python-version: ["3.11", "3.12", "3.13"]
runs-on: ${{ matrix.platform }}

View file

@ -15,7 +15,7 @@ concurrency:
jobs:
build_sdist:
name: Build SDist
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
with:
@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
os: ["ubuntu-24.04-arm"]
arch_linux: ["aarch64"]
steps:
- uses: actions/checkout@v4
@ -50,11 +50,6 @@ jobs:
submodules: true
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- uses: pypa/cibuildwheel@v2.22.0
env:
CIBW_ARCHS_LINUX: ${{ matrix.arch_linux }}

View file

@ -0,0 +1,36 @@
#!/usr/bin/python3
# SPDX-FileCopyrightText: 2025 Tim Cocks for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
Display a simple test pattern of 3 shapes on a single 64x32 matrix panel.
Run like this:
$ python simpletest.py
"""
import adafruit_raspberry_pi5_piomatter
import numpy as np
from PIL import Image, ImageDraw
width = 64
height = 32
geometry = adafruit_raspberry_pi5_piomatter.Geometry(width=width, height=height, n_addr_lines=4, rotation=adafruit_raspberry_pi5_piomatter.Orientation.Normal)
canvas = Image.new('RGB', (width, height), (0, 0, 0))
draw = ImageDraw.Draw(canvas)
framebuffer = np.asarray(canvas) + 0 # Make a mutable copy
matrix = adafruit_raspberry_pi5_piomatter.AdafruitMatrixBonnetRGB888Packed(framebuffer, geometry)
draw.rectangle((2,2, 10,10), fill=0x008800)
draw.circle((18,6), 4, fill=0x880000)
draw.polygon([(28, 2), (32, 10), (24, 10)], fill=0x000088)
framebuffer[:] = np.asarray(canvas)
matrix.show()
input("Press enter to exit")