9

In Fast.Led lib for arduino there is a code to turn off all leds

FastLED.clear ();

Is there also a shortcut to turn all LEDs ON, and with a specific color

RS2322016
  • 384
  • 1
  • 3
  • 12
Niles
  • 123
  • 2
  • 3
  • 9

1 Answers1

10

You can use fill_solid.

For example

fill_solid( leds, NUM_LEDS, CRGB(50,0,200));

Or

fill_solid( leds, NUM_LEDS, CRGB::Red);
Rob Hilken
  • 142
  • 1
  • 2
  • 11