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
3
u/Marmilicious [Marc Miller] Apr 18 '25
Also, have a look at this cylon example that does not use delay(). Therefore it won't mess with the timing of your other pixels that you want to blink at their own different rates.
https://github.com/marmilicious/FastLED_examples/blob/master/cylon_color_changing.ino
Try this example to run a cylon pattern on your setup, the whole strip. Then try modifying it to run cylon on just the partial range of pixels you want. Once you get that working you can try adding in some code to blink the other pixels. When you run into questions please put your code on pastebin.com or gist.github.com and share a link to your code so we can help out.