Python RGB Matrix games and animations https://www.xythobuz.de/ledmatrix_v2.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Thomas Buck af1f8ae328 fix breakout endless loop and modify default colors 1 year ago
fonts more fonts. more instructions. added images and colors from cccamp23 style guide. text rendering now possible with colors. custom font spacing. images automatically scaled and cropped. fixed qr text and colors. allow exiting test gui with q or esc. better target check. 1 year ago
hardware various adjustments 1 year ago
images add more animations 1 year ago
tools systemd unit 1 year ago
.gitignore initial weather page and other small stuff 1 year ago
README.md systemd unit 1 year ago
bdf.py split text drawing interface into multiple methods. 1 year ago
breakout.py fix breakout endless loop and modify default colors 1 year ago
camp_pico.py various adjustments 1 year ago
camp_small.py rename images 1 year ago
config.py initial weather page and other small stuff 1 year ago
copy.sh various on-camp adjustments 1 year ago
gamepad.py change brightness with controller. tweak tetris. 1 year ago
games.py various on-camp adjustments 1 year ago
image.py image test runner shows both bilinear and nearest neighbour. add aphex twin logo. 1 year ago
img_tmp.py pre-created images with less whitespace 1 year ago
life.py change brightness with controller. tweak tetris. 1 year ago
livingroom.py add more animations 1 year ago
manager.py randomized manager should not show same screen twice 1 year ago
mapper.py double speed of breakout gameplay. fix bug where breakout paddle appeared in middle of screen on large pi matrix. randomize breakout start angle. 1 year ago
net.py various on-camp adjustments 1 year ago
pi.py various adjustments 1 year ago
pi.sh convenience pi update script 1 year ago
pico.py Add PicoInput to get buttons on Interstate75 W. 1 year ago
pico_ota.py various on-camp adjustments 1 year ago
qr.py initial weather page and other small stuff 1 year ago
qr_tmp.py pre-created images with less whitespace 1 year ago
runner.py tweaks, started work on new game 1 year ago
scroll.py kind of fix manager 1 year ago
snake.py reset snake speed on restart 1 year ago
solid.py change brightness with controller. tweak tetris. 1 year ago
splash.py change brightness with controller. tweak tetris. 1 year ago
telegram.py initial weather page and other small stuff 1 year ago
test.py initial weather page and other small stuff 1 year ago
tetris.py tweak tetris colors 1 year ago
util.py randomized manager should not show same screen twice 1 year ago
weather.py show missing graphics in weather 1 year ago

README.md

RGB Matrix Visualizer

Render various content to various output devices.

Quick Start

Just run:

./manager.py

and go from there.

Dependencies

You always need:

pip install Pillow bdfparser "qrcode[pil]" evdev wetterdienst

For evdev to find all devices you may need to add your user to the input group or run the scripts as root.

The rest depends on the output device chosen. For debugging on your host PC you can use the TestGUI interface with pygame:

pip install pygame

Setup

The other currently supported option is using a Raspberry Pi with the Adafruit RGB Matrix Bonnet and a matching LED Matrix. The tutorial suggests using the Adafruit Raspberry Pi Installer Script for the RGB matrix. This will give you the hzeller/rpi-rgb-led-matrix project which includes the Python bindings used in this project.

Use the included systemd unit to auto-start the script on Raspberry Pi:

sudo cp tools/led.service /etc/systemd/system/led.service
sudo systemctl daemon-reload
sudo systemctl enable --now led.service

Adding your own visualizations

Take a look how others are implemented. You can chain the different screens together using Manager and also check for conditions, as seen in CheckHTTP. This should enable you to quickly create something usable.

One goal is to run this project on public events. If this is the case, and you want your own message to appear, simply open up a PR or send an email with a patch. Because of different versions between host PCs and the Raspbian OS, things may look slightly different, especially regarding stuff like animated GIF viewing.

Licensing

This project is licensed as beer-ware:

----------------------------------------------------------------------------
"THE BEER-WARE LICENSE" (Revision 42):
<xythobuz@xythobuz.de> wrote this file.  As long as you retain this notice
you can do whatever you want with this stuff. If we meet some day, and you
think this stuff is worth it, you can buy me a beer in return.   Thomas Buck
----------------------------------------------------------------------------

The included fonts from farsil/ibmfonts are licensed as CC-BY-SA-4.0.

The fonts from cmvnd/fonts are licensed as GPLv3.

The tiny font is from robey and licensed as CC0.

The included GIFs are from GifCities.

The included DWD weather API documentation is from their website.