As an Arduino beginner I'm searching for a very simple code.

As an Arduino beginner I’m searching for a very simple code. I don’t want to blink 1 single led but 30 leds simultaneous .

As the code is

leds[0] = CRGB::Green;
FastLED.show();
delay(500);
// Now turn the LED off, then pause
leds[0] = CRGB::Black;
FastLED.show();
delay(500);

with what do I need to replace the ‘0’ so it talks to 30 leds at the same time?

thanks in advance

You’ll either need to repeat, like

leds[1] = CRGB::Green;
leds[2] = CRGB::Green;

Or use a for loop:

for(int i = 0; i < 30; i++)
{
leds[i] = CRGB::Green;
}

Or use this:

fill_solid(leds, NUM_LEDS, CRGB::Green);

fill_solid works like a charm!

Thanx a lot Jason!