Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 2.71 KB

led-matrix-driver.md

File metadata and controls

44 lines (32 loc) · 2.71 KB

My rPi x LED matrix setup

For controling a matrix of LEDS

Gear

Driving the display

Three options:

Run as a PixelPusher receiver (daemon)

start pixel-push daemon:

sudo /home/pi/rpi-matrix-pixelpusher/pixel-push -u 8192 -i wlan0 --led-gpio-mapping=regular --led-chain=5 --led-cols=64 --led-rows=64 --led-parallel=3 --led-daemon

kill pixel-push deamon:

sudo kill -9 $(ps -ef | grep /home/pi/rpi-matrix-pixelpusher/pixel-push | grep -v grep | awk '{print $2}')

Commands

C++ library demos

gif & image viewer:

sudo ./led-image-viewer ~/images/homer-simpson-relaxing.gif --led-gpio-mapping=regular --led-chain=5 --led-cols=64 --led-rows=64 --led-parallel=3 --led-show-refresh

sudo /home/pi/rpi-rgb-led-matrix/utils/led-image-viewer ~/images/logo-dark.jpeg --led-gpio-mapping=regular --led-chain=5 --led-cols=64 --led-rows=64 --led-parallel=3 --led-show-refresh

scrolling text:

sudo /home/pi/rpi-rgb-led-matrix/examples-api-use/scrolling-text-example -f ../fonts/10x20.bdf hey --led-gpio-mapping=regular --led-chain=5 --led-cols=64 --led-rows=64 --led-parallel=3 --led-show-refresh

rotating block:

sudo /home/pi/rpi-rgb-led-matrix/examples-api-use/demo --led-gpio-mapping=regular --led-chain=5 --led-cols=64 --led-rows=64 --led-parallel=3 --led-show-refresh -D 0

scrolling image:

sudo /home/pi/rpi-rgb-led-matrix/examples-api-use/demo --led-gpio-mapping=regular --led-chain=5 --led-cols=64 --led-rows=64 --led-parallel=3 --led-show-refresh -D 1 runtext.ppm

Python3 library demos

show image:

sudo python3 /home/pi/rpi-rgb-led-matrix/bindings/python/samples/image-viewer.py ~/images/logo-dark.jpeg --led-gpio-mapping=regular --led-chain=5 --led-cols=64 --led-rows=64 --led-parallel=3 --led-show-refresh

rotating block:

sudo python3 ./rotating-block-generator.py --led-gpio-mapping=regular --led-chain=5 --led-cols=64 --led-rows=64 --led-parallel=3 --led-show-refresh