0
\$\begingroup\$

I am using three WS2812B LEDs in my PCB and are connected in series with each other. Is there a way that I can control each LED independently rather than controlling all three together? For example just turn on 2nd LED and turn off other two LEDs? Schematic

\$\endgroup\$

1 Answer 1

5
\$\begingroup\$

Yes there is a way.

You just send new data packet to all LEDs, but with only the changes for the LEDs you want to change. Even if you don't want to change the other LEDs, you need to update their data because a new data packet must be sent.

Which means you likely need to store state of each LED in your program to update only state of one LED and send the updated data to all LEDs.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.