A simple C++ program to display a slideshow of images (and GIF) on a HUB75 matrix display. Uses hzeller/rpi-rgb-led-matrix and ImageMagick.
- add
dtparam=audio=off
in/boot/config.txt
- remove
dtoverlay=w1-gpio
in/boot/config.txt
- add
blacklist snd_bcm2835
to/etc/modprobe.d/alsa-blacklist.conf
sudo apt-get install libgraphicsmagick++-dev libwebp-dev
sudo apt-get remove bluez bluez-firmware pi-bluetooth triggerhappy pigpio
- remove
pam_systemd
andpam_chksshpwd
in/etc/pam.d/common-session
- install WiringPi
-
Run
./deploy.sh <ip_address>
it will copy the necessary files to your Raspberry PI, compile the program then register and start the service. -
Use
rsync
or an FTP client to transfer your images to/home/pi/matrix/images
, after a while (max 10 seconds) the slideshow begins.
Images can be in PNG (5s duration) and animated GIF format (respects frame delay).
For convenience, the RPI IP address is displayed on program start.
There are some constants at the begining of matrix.cpp
MATRIX_WIDTH
andMATRIX_HEIGHT
: size of the screen and expected size of imagesIMAGE_DELAY
: default duration for still images (PNG)NUMS_FILE
,NUMS_WIDTH
,NUMS_HEIGHT
andNUMS_SPACE
: configuration of a file containing numbers 0 to 9 + ":" symbolSHOW_TIME
,TIME_X
andTIME_Y
: configuration of the digital clockBUTTON_PIN
: input pin for a button (on/off)