I am trying to add colors that I set to an led using FastLED library on arduino
Currently I am using fill_solid
like so,
leds(8 * CLUSTER, (8 * CLUSTER) + (CLUSTER - 1)).fill_solid(CRGB(255,0 ,0));
FastLED.show();
However, I am not able to add colors to it after this has been set. Ideally I would like something like so,
leds(8 * CLUSTER, (8 * CLUSTER) + (CLUSTER - 1)).fill_solid(CRGB(255,0 ,0));
FastLED.show();
leds(8 * CLUSTER, (8 * CLUSTER) + (CLUSTER - 1)).fill_solid(CRGB(0,255 ,0));
FastLED.show();
And the led would glow with RGB = (255, 255, 0)
Is there any way to achieve this without keeping state information and just add to the existing color using FastLED?
leds(8 * CLUSTER, (8 * CLUSTER) + (CLUSTER - 1)) += CRGB(0,255,0); should do what you want (I’m pretty sure I checked that support in for the pixelviews)