Create a gist now

Instantly share code, notes, and snippets.

@fvdbosch / Secret
Last active Nov 10, 2016

What would you like to do?
Displaying pixel art on the Adafruit RGB Matrix using a Raspberry Pi Zero
#!/usr/bin/env python
# RGB Matrix Library:
import os
from time import sleep
directory = "/home/pi/rpi-rgb-led-matrix/examples-api-use/"
for filename in os.listdir(directory + "images"):
os.system("sudo " + directory + "demo -D1 -m 0 --led-gpio-mapping=adafruit-hat-pwm " + directory + "images/" + filename + " &")
os.system("sudo killall demo")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment