I admit it, I seem to be a bit thick in my head, I think I have followed the install docs to get everything installed that is needed to get PiPixel working on a Pi Zero W.
I guess what I am still having problems with is all the definitions that might be clear to someone working day in day out in Python, unfortunately, that’s not me.
The following is a code that I tested to work with AllPixel, but now I want that to work with PiPixel. The changes I made are obviously incorrect, how should it look like?
from bibliopixel.drivers.neopixel import * driver = neopixel(num = 8*8, ledtype = LEDTYPE.WS2812B, c_order='GRB') #import the bibliopixel base classes from bibliopixel import * from bibliopixel.animation import * import sys class BasicAnimTest(BaseStripAnim): def __init__(self, led): super(BasicAnimTest, self).__init__(led) #do any initialization here self.index = 0 self.oldindex = -1 self.NUM_LEDS = 8*8 self.gHue = 0 def step(self, amt=1): self._led.set(self.index, colors.hue2rgb((self.gHue)%256)) if self.oldindex > -1: self._led.set(self.oldindex, colors.Black) self.oldindex = self.index self.index += 1 if self.index >= self.NUM_LEDS: self.index = 0 self.gHue += 1 if self.gHue > 255: self.gHue = 0 #Now try with Strip led = Matrix(driver, width=8, height=8) led.set_brightness(10) try: anim = BasicAnimTest(led) anim.run(fps=60) except: e = sys.exc_info() print('Error:', e)