Skip to content

weijiexi/art173-final-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project - RGB Matrix

Controlling RGB LED display with Raspberry Pi GPIO

A demo to use a 32x32 RGB LED panels with the Raspberry Pi.

The LED-matrix library is (c) Henner Zeller [email protected], licensed with GNU General Public License Version 2.0 (which means, if you use it in a product somewhere, you need to make the source and all your modifications available to the receiver of such product so that they have the freedom to adapt and improve).

The RGBMatrix class provided in include/led-matrix.h does what is needed to control these. You can use this as a library in your own projects or just use the demo binary provided here which provides some useful examples.

Let's do it

This documentation is split into parts that help you through the process

If you have an Adafruit HAT or Adafruit Bonnet, you can choose that with a command line option described below Run a demo. You find that in the examples-api-use/ directory:

The following is a demo to use adafruit Bonnet with a 32x32 RGB LED panels with the Raspberry Pi.

1. building led-image-viewer and video-viewer run demo examples

curl https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/main/rgb-matrix.sh >rgb-matrix.sh
sudo bash rgb-matrix.sh
  • Building led-image-viewer
sudo apt-get update
sudo apt-get install pkg-config libavcodec-dev libavformat-dev libswscale-dev
make video-viewer
  • Building video-viewer
sudo apt-get update
sudo apt-get install libgraphicsmagick++-dev libwebp-dev -y
make led-image-viewer

2. view images and videos

cd ~/rpi-rgb-led-matrix/utils/
  • view images
sudo ./led-image-viewer --led-no-hardware-pulse --led-gpio-mapping="adafruit-hat" -f -w3  *.jpg 
  • view videos
sudo ./video-viewer --led-no-hardware-pulse --led-gpio-mapping="adafruit-hat" -f 1.mp4
  • demo examples
cd ~/rpi-rgb-led-matrix/examples-api-use/
sudo ./demo  --led-rows=32 --led-cols=32 -D6

Ref:

pins layout

documentation

About

Art173- Electro-Crafting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published