Hi New to this group.

Hi

New to this group. Stopped in cause I have a question I was hoping to get help with. I will apologise now, I’m not very good with code. I’ve never had to write in my own code, just been able to get by piecing together the work of others. Odds are this will have a very simple solution, but my brain isn’t wrapping itself around it :stuck_out_tongue:

I’m building an led hoop skirt for my wife. It will have four strips of ws2812b leds, arranged horizontally, parallel to each other. Each strip will have a different number of leds, smallest at the top, increasing to largest at the bottom. She wants an animated effect, basically a color wipe, going from top to bottom. So all leds on each strip will be the same color, but each strip will be a different color, with the strips slowly changing. I also want to be able to change the color palette with a button press.

This animated neopixel glow scarf has the effect and function I want (linked to code section)

I am just wondering how to edit the code so each strip is all one color, and the color changes between the strips instead of between individual pixels. I plan on using an arduino micro (open to other board suggestions, I also have teensy, flora, gemma, and uno on hand), so I can assign each strip to a different pin, or wire them all together on one pin, whichever is easier.

I’ve gotten as far as figuring out I will probably need to #define each led strip. Then my mind goes completely blank on how to proceed from there, lol.

Hello @Post-Master_Sodium
I modified @Erin_St_Blaine glow fur scarf code to work for four hoops, each hoop being a single color. I made a temp array, leds_temp, with length of only 4 where the gradient is processed. Then the resulting four colors from leds_temp are filled into each “hoop” in the full leds array.

https://pastebin.com/b6H6JtwL

Here’s a picture if it running on one of my test setups, simulating a 4 hoop, 8 pixels per hoop setup. Button press works too.
missing/deleted image from Google+

Wow, that is fantastic! So much more of a response than I was expecting! Looking through, I definitely learned quite a bit about what I was looking to do.

I seriously appreciate it @marmil ​, you went above and beyond to help me out. Many thanks and much gratitude to you good sir!

One quick question @marmil

I saw there was a clock pin defined. Was this set up for a different led style than the ws2812, or is there somewhere else I need to connect it to?

I was using LPD8806 pixels which have a Data and Clock connection. If you are using pixels that are clockless (such as WS2812) then your FastLED.addLeds line won’t have the Clock part.

If you look at the FastLED example FirstLight you will see the clock and clockless versions.

Cool. Figured it was something along those lines. Thanks again for all your help!