r/FastLED • u/Flux83 • Apr 18 '25
Support Multiple patterns on one strip
Sorry yall I'm super newbie at this, I've got a arduino nano with a ws2815, resistor on the signal wire and capacitor between positive and negative. It works and I've ran a few of the example codes. I am building a Star Wars themed back pack and I want some leds on a pannel or two. Is it possible to have 10 leds on the strip use the Cylon pattern in all red, and then have several other leds of different colors blink at random times for random amounts of time. Is that possible or do I need multiple signal wires or nanos to achive this? Thanks
Edit: Made some headway figured out how to separate the leds now I just need the correct code for a singular led to blink that will work with the rest of the code. https://gist.github.com/Flux83/0d89b3db67c1daeaf2850640d8cc2e19.js
View all comments
Show parent comment
2
u/Marmilicious [Marc Miller] Apr 20 '25
Thank you for sharing a code link. (You can remove the .js on the end of the link and then it will display a bit nicer.)
Good start. For your single blinking pixels 13 and 14, try copying two of the blink animations from my blink_variations.ino example and put in your main loop in the Animation B and C sections. Update the pixel numbers to your 13 and 14.
Also, something to update in your code: You only need one FastLED.show() call at the bottom of the main loop. And be careful about the stray } curly braces currently on the ends of those lines. Delete them.
Keep going!