https://github.com/lambdaurora/gpio_led_image
A fun software to "display" images on a RGB led.
https://github.com/lambdaurora/gpio_led_image
cpp gpio raspberry-pi raspberry-pi-gpio rgb-led
Last synced: 10 months ago
JSON representation
A fun software to "display" images on a RGB led.
- Host: GitHub
- URL: https://github.com/lambdaurora/gpio_led_image
- Owner: LambdAurora
- License: mit
- Created: 2018-12-29T22:40:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T18:37:58.000Z (almost 7 years ago)
- Last Synced: 2025-03-15T00:09:45.429Z (10 months ago)
- Topics: cpp, gpio, raspberry-pi, raspberry-pi-gpio, rgb-led
- Language: C
- Size: 66.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GPIO_led_image
A little fun software in C++ to "display" an image to an RGB led.
## How it works?
Run as root the software with as an argument a path to an image file (PNG, JPG, etc...).
For the first run, it will create a configuration file `/etc/gpio_led_image.txt`, the 3 uncommented lines are the R, G and B GPIO pins of the led, defaults are: R=0, G=2 and B=3.
When you launch the configured software with an image, it will read the image and display each pixel one after the other for 150ms, it's just that, just for fun.
## Libraries used
- wiringPi -> For GPIO manipulation.
- lambdacommon -> Colored terminal output, int parsing, file management...
- stb_image -> For image reading.
## Build
Just build it with cmake and make!