Cascading Matrices #37
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The MAX7219 supports chaining multiple chips in series, this pull request adds support for that functionality and implements a class for a chain of 8x8 LED matrices.
adafruit_max7219.max7219.ChainableMAX7219
Adds chainable support by modifying this RPi Pico MicroPython implementation to work as a subclass of
max7219
in the CircuitPython ecosystem.adafruit_max7219.matrices.CustomMatrix
A feature matched
adafruit_max7219.matrices.Matrix8x8
that allows for displays of any rectangular configuration of 8x8 LED matrices by implementingChainableMAX7219
and modifying relevant parts of the underlyingadafruit_framebuf
dependency.Hardware
I don't believe Adafruit carries any multi-panel 8x8 LED Matrices (yet...), but they are abundant and affordable on Amazon. I've been using this one.
Wiring
All LED Matrices need to be oriented the same way, and their driving MAX7219 chips should be chained left to right, top to bottom. So if there are multiple rows, the last chip of the first row is chained to the first chip of the second row.
Coordinate System
The top left pixel of the display is
(0, 0)
. Thex
value increases from left to right while they
value increases from top to bottom.Demos
examples/max7219_custommatrixtest.py
is a modified version ofexamples/max7219_simpletest.py
for a set of 4 8x8 LED Matrices arranged as a single 32x8 display:It's also possible to create displays with multiple rows of matrices:
