Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8621

General • PIO help for multiple ws2812 outputs

$
0
0
I'm new to pio and still trying to wrap my head around it. My goal is a pio program which can write to multiple led strips. I know I'll need to work out the interleaving of the rgb data before it's fed into the pio program, and I don't quite understand dma yet. Before that, I just need to understand some basics.

First, what exactly is "pins", and how does it work when multiple output pins have been defined?
Does "set pins, 1" just set the first pin? How would I set the 2nd, 3rd, or 32nd pin?
If I have 8 pins and call "set pins, 8", will that take 8 bits from the osr and apply them to each pin? What happens if the number of pins is higher or lower than the value in "set pins, VAL"?
Does mov always copy over 32 bits? Does "mov pins, null" set them all low?

...and so on. Thanks in advance for any guidance.

Statistics: Posted by Bapstack — Sat Sep 13, 2025 8:38 pm



Viewing all articles
Browse latest Browse all 8621

Trending Articles