Is there a quick way to turn off each LED in my array?
Basically looking for a way to switch them on and off.
Could it be as easy as setting brightness to 0 then doing a FastLED.show();
Thanks
Phil
Is there a quick way to turn off each LED in my array?
Basically looking for a way to switch them on and off.
Could it be as easy as setting brightness to 0 then doing a FastLED.show();
Thanks
Phil
FastLED.clear(), but you’ll lose the color data stored in your array
FastLED.showColor(CRGB::Black);
If you don’t need to keep your current color data use clear() as @chad_steinglass mentioned. (Using clear() sets all pixel data to RGB 0,0,0.)
And setting brightness to 0 and calling show() is a fine way to do it too if you’d like to keep your current color data.
Great, thanks