I was able to tell all of the strips to display rainbow() for example all at the same time and the pattern worked for the length of the strip.
Now, I have the opposite - I have one long strip that I want to break down into multiple “virtual” strips. For example, 75 total LEDS on a single physical strip/pin but I want to be able to break that down into 5 @ 10 LEDs and 5 @ 5 LEDs (total 75). The pattern would be 10 - 5 -10 - 5 - 10 -5 - 10 - 5 - 10 - 5. I might want to fill each of the 5 length virtual strips with blue while I make the 10 length virtual strips do rainbow.
Another option you could try would be adding two temp led arrays that you keep modifying stuff in and then copying that data to the leds that actually get displayed. So you might have something like: #define NUM_LEDS 75 #define sizeA 10 #define sizeB 5
CRGB leds[NUM_LEDS];
CRGB tempA[sizeA]; //working temp array of 10 pixels
CRGB tempB[sizeB]; //working temp array of 5 pixels
Then you could do something like:
fill_rainbow( tempA, sizeA, millis()/20 );
fill_solid( tempB, sizeB, CRGB::Blue );
Then have a subroutine that could copy tempA and tempB data to each of the appropriate sections before calling FastLED.show().
Or you might skip using the temp arrays all together and just operate directly on the beginning of the single long strip. Since you seem to have 15 pixels (10 + 5) that repeat 5 times (for a total of 75), you could also do something like:
fill_rainbow( leds, sizeA, millis()/20 ); //only fills 10 pixels
fill_solid( &(leds[sizeA]), sizeB, CRGB::Blue ) //start at pixel 10, filling 5 pixels
Then use a for loop and copy 15 pixels at a time four times to the rest of the leds array. Or if using RGBSet (with each set being 15 pixels long) you could do:
partB = partA;
partC = partA;
partD = partA;
partE = partA;
Thank you so much @marmil for your fast response, this is exactly what I’m looking for. I think I’m going to use the CRGBSet with partA through partWhatever. This is going to be used in a hat creation of mine for a summer concert at the beach so its not going to be in a Top Hat. The luxury of the Top Hat is lots of room inside for wiring, this hat doesn’t have that so I wanted to minimize the wiring as much as possible to keep it clean looking.
Thanks again and pics will be posted once competed