I’m having a hard time successfully running a python script. Using the PiPixel on a RPi 3 B+, a 32x8 APA102 led matrix (eventually two of those chained together), and python3.7 . Would anyone be so kind as to give me a small code example I can work from? Up to now, all I get is scrambled leds not doing anything good. I have tried the new Builder thingy, but no success either.
Eventually I will want to control individual led’s and trigger animations via OSC.
Here is my current code:
from BiblioPixelAnimations.matrix.GameOfLife import *
from bibliopixel.drivers.SPI.APA102 import *
from bibliopixel.layout import *
pixW = 32
pixH = 8
driver = APA102(pixW*pixH)
#this is to eventually include a second LED panel in series
coords = 
for i in range(pixH):
coords.append([j+(ipixW) for j in range(pixW)] + [k+(pixWpixH)+(i*pixW) for k in range(pixW)])
led = Matrix(driver, width = pixW, height = pixH, coord_map = coords)
anim = GameOfLife(led)