Persistence of vision display implementation - low-level app to drive LEDs in realtime using WiringPi and BCM2835 lib on Raspberry Pi Zero W. Provides frame buffer in shared memory and displays its contents. LED model: APA102.
pov-pi-led-driver was created as a part of engineering diploma at PUT by Roman Oberenkowski. Device (hardware part) created by Roman Oberenkowski and Paweł Szalczyk. Photos and schematic by Paweł Szalczyk.
- WiringPi 2.50 http://wiringpi.com/download-and-install/
- BCM2835 1.71 https://www.airspayce.com/mikem/bcm2835/
Set parameters by editing header file led_constants.h. That includes:
- LED Count, vertical resolution - picture height
- COLUMNS_COUNT, horizontal resolution - picture "width"
Following commands will compile and run LED driver. Resulting binary requires higher privileges (because of BCM2835)
- Compile:
g++ −o leddrvexec leddriver.cpp −lbcm2835 −lwiringpi
- Allow execution:
chmod u+x leddrvexec
- Run with
sudo ./leddrvexec