Thanks for all the great posts of projects on here.

Thanks for all the great posts of projects on here. I have a simple question as a newer user of the FastLED. Thank you in advance for considering the question!

Say I have a long string of leds and I want the first 100 to be one color, then the following 50 to be another color, then the last 20 to be a different color. Is there a simple way to define these three groups without listing every address in separate arrays?

I might try to move a pattern across the groups later, but first, just want to add fill_solid to multiple contiguous elements.

Try this - it works perfectly now :slight_smile:

@Jeremy_Spencer I’m playing with the array functions and understand the basics of a set. On my string, I can take the NUM_LEDS and subtract from it, thus limiting the effect to the front of a string:
NUM_LEDS-50

But how do I position the start of an effect to be a number of pixels past the start of the strip?

This should help, gives more of an idea of what can be done with CRGBArray.
https://plus.google.com/102282558639672545743/posts/a3VeZVhRnqG

@Jeremy_Spencer Thank you for pulling up that post from Daniel! I’m very appreciative for your help. :slight_smile:

Daniel’s opening was the missing info I needed to understanding the whole RGBSet reference.

"Wouldn’t it be nice to work on entire sets of leds at once? People keep asking for it, and I think I found a way to do it that I’m happy enough with. Imagine if you could write:

leds(0,4) = CRGB::Red;

to set the first 5 leds to be red. "

Hi @matthew_mccormack : Here are a couple of examples of mine that illustrate how to use RGBSet: