CRBGArray question - Is there a way to define a name for a pixel set and then just refer to the name to operate on those pixels?
If I create leds as:
CRGBArray<NUM_LEDS> leds;
Can I name a set of pixels (even and odd numbers for example), so in void loop(), instead of this:
leds(2,4,6,8) = CRGB::Red;
leds(3,5,7,9) = CRGB::Green;
I could refer to them like this:
leds(even) = CRGB::Red; // “even” would be 2,4,6,8
leds(odd) = CRGB::Green;
Ok, thanks for the info about element skipping. I will look forward to that. In the mean time, here’s a simple example of trying to rainbow fill a strip and then set the start and end to a color, but I’m still doing something wrong. http://pastebin.com/VP6QLJ0r
Using a Teensy 3.0, IDE 1.6.5, and latest FastLED library. Error message included in the paste.