A collection of demos for the Adafruit 32x32 matrix and a Raspberry Pi
Project description
MatrixDemos
A collection of demos for a Raspberry Pi and the Adafruit 32x32 matrix
Software Dependencies
-
Python >= 3.6
-
Pillow
-
pygame (joystick support)
Hardware Dependencies
- Raspberry Pi 2, 3, or 4; running Raspbian Buster or greater
- Adafruit RGB Matrix HAT
- Adafruit 32x32 RGB LED Matrix
- 5V 4A power supply
- USB joystick (optional)
Instructions
- Assemble your Matrix HAT
- Wire up and configure the Raspberry Pi
- Install MatrixDemos
sudo pip3 install MatrixDemos
Now, the MatrixDemos are installed. You can test by running this, which lists the possible demo commands:
python3 -m matrixdemos
Usage
Execute any of the following console commands.
matrix_digitalclock
: Shows the time and date. Run with-sdn
to only display time.matrix_analogclock
: Displays a simple analog clock, use command line options to change colorsmatrix_slideshow path/to/images/
: Display images from a directory. Use-l
to change the slide time in seconds, and-b
for the background colormatrix_snakegame
The classic "snake game" now on your matrix! Requires a USB joystick!matrix_stars
Displays some twinkling stars. Use-s
to adjust speedmatrix_textswarm
Displays text flying about. Use-c
to edit the text color, and-b
for the background color.matrix_animations [[PATH]/[DEMO]]
Shows an animation from images in a directory. Use-f
to adjust framerate, and-l
and-n
to control looping. Use-g
to specify an animated gif or videomatrix_scrolling [[TEXT]/[PATH]]
Scrolls text or an image from left to right. Use-c
and-f
to adjust text color and font,-s
for speed,-r
to repeat, and-b
to bounce.
Visit the Gallery to see a visualization of each demo.
Setting Colors:
When setting the color on (ie. -c
in matrix_textswarm
) you can specify either the color's name (RED) or its hex code ("#ff000").
Example of setting the color of the analog clock:
matrix_analogclock -c "#333" -s Red -m white -h "#aaaaaa" -b "#001"
License
This software is under the MIT License. See the LICENSE file for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for MatrixDemos-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 861d7b892f54190ff82bb8b4d60693748a334f90865722598f64615ed113925b |
|
MD5 | 73ddae24d7cbb692c8a94d0bbed80a62 |
|
BLAKE2b-256 | b20dfa09dbeaff8db584a344adc226fa0829e848a4c7aa94d778835d48d850ed |