I've been trying to use this to run two different ws2812b strips on a lopy4, I've got the one working, but I can't get two working, on two different pins.
chain = WS2812( ledNumber=numLed, brightness=10, dataPin='P11' )
chain_two = WS2812( ledNumber=numLed, brightness=10, dataPin='P8' )
chain blocks chain_two, and vice-versa.
I see in ws2812.py you have space to add more pins (the None and None):
self.spi = SPI(0, SPI.MASTER, baudrate=8000000, polarity=0, phase=1, pins=(None, dataPin, None))
How can I use this to run two strips/two separate animations?
Thank you!
I've been trying to use this to run two different ws2812b strips on a lopy4, I've got the one working, but I can't get two working, on two different pins.
chain blocks chain_two, and vice-versa.
I see in
ws2812.pyyou have space to add more pins (theNoneandNone):self.spi = SPI(0, SPI.MASTER, baudrate=8000000, polarity=0, phase=1, pins=(None, dataPin, None))How can I use this to run two strips/two separate animations?
Thank you!