Hi FastLED experts. I am a newbie and have been happy to explore the

Hi FastLED experts. I am a newbie and have been happy to explore the FastLED library and Wiki as it seems like a much more sophisticated tool than the Neopixel library (which I am also new in using.)

I would love to see more beginners examples from which I could explore. For example, there doesn’t seem to be an example, or an outline for simply lighting up an entire strip one color. I can do it going back to my old Neopixel way of using For loops, but it seems like FastLED would have a more efficient way of doing so (maybe not). I might be missing it in the arrays section - but by then it’s assuming something with the ‘i’ variable that isn’t clear to me.

Is there a way to simply tell all pixels to turn red or is the best way to use a for loop for each pixel?

I know, very basic.
Thanks,
Liz

I found FastLED far easier to use. The demo rell 100 example is a great place to start :slight_smile:

Have a look at the fill_solid function. For example…

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

Welcome @Liz_Neely . To fill a strip with a single color you could use fill_solid like this (depending on what format you prefer to use):

fill_solid( leds, NUM_LEDS, CRGB::Red ); // color red
or
fill_solid( leds, NUM_LEDS, CRGB(255,0,0) ); // color red
or
fill_solid( leds, NUM_LEDS, CHSV(0,255,255) ); // color red
or
fill_solid( leds, NUM_LEDS, CRGB(0xFF0000) ); // color red

For loops work fine too!

Definately keep reading through the wiki, and here’s some examples for you to explore: