Skip to content

Running two different strips on different pins #1

@gregsvo

Description

@gregsvo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions