hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.63k stars 1.15k forks source link

Controlling led-image-view using GPIO pins #892

Open wremac opened 4 years ago

wremac commented 4 years ago

Hi all, I am pretty new to programming so go easy on me haha. How would I go about coding a program that would load multiple images/gifs and cycle thru those images using gpio pins on the RPi? I have the led-image-viewer working I just want to control it using the gpio.

wremac commented 4 years ago

Would it better to use and edit code from Utilities or API?

hzeller commented 4 years ago

The library already uses GPIO and provides you a convenient canvas, so that you don't have to understand the inner workings of the matrix. Cou can just use the API to output whatever you want.

wremac commented 4 years ago

First off thanks for providing a detailed library! What I want to do is use five GPIO pins as an input for a bit value and display an image/gif corresponding to that value.

hzeller commented 4 years ago

Have a look at the input-example.cc which shows how to use GPIO inputs in conjunction with this library.