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

qwerty10
  • 384
  • 1
  • 3
  • 12
Niles
  • 123
  • 1
  • 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
  • Works fine. While **FastLED.showColor()** will not behave properly if you add delay after it, – mayid Oct 14 '20 at 02:12