Help me please im a beginner

Hello im trying to light a group of leds with the name of it how can i do?

im new in the program world

#include <FastLED.h>
#define DATA_PIN 11
#define NUM_LEDS 60
#define CLOCK_PIN 13

CRGB leds[NUM_LEDS];

const byte lantaarn[5] = {1, 6, 11, 16, 21,};
const byte huis1in[4] = {2, 3, 4, 5,};
const byte huis1out[4] = {7, 8, 9, 10,};
const byte huis2in[4] = {12, 13, 14, 15,};
const byte huis2out[4] = {17, 18, 19, 20,};

const byte groupCount = 5;
const byte *groups[groupCount] = {lantaarn, huis1in, huis1out, huis2in, huis2out,};
const byte groupLengths[groupCount] = {5, 4, 4, 4, 4,};

void setup() {
  {FastLED.addLeds<APA102, DATA_PIN, CLOCK_PIN, RGB>(leds,NUM_LEDS);
  FastLED.setBrightness(50);
  FastLED.clear();}
  
}


void loop() {

}

im using APA102 for lights its a 4 pin digital LED strip

im new in the programinhg of arduino

for (byte i = 0; i <groupCount; i++)
  {
    for (byte j = 0; j <groupLengths[i]; j++)
    {
      byte value = groups[i][j];
    }

i added this to the code

What would you like to achieve? I have no clue..

i need help with how i can turn on the lights by naming the group.

i created the groups in the code above

Take the Fastned library, lookup the simplest example. Put that in your IDE and upload to your board. Does that work? Then make small changes. If you do not succeed, post your full code as wel as a schematic and a picture of your setup. Then, explain what happens and what you did expect to happen. From there we can help you...
I have a strong feeling your code will not work for more than one reason. Or you are more clever with code than me... It is difficult to tackle multiple issues. So it is best to start with something that works.

@build_1971 I tried an example but I can't find an example what I'm looking for.
I want to have group1 group2 group3 with a number of addressed leds see my code

const byte lantern[5] = {1, 6, 11, 16, 21,};
const byte house1in[4] = {2, 3, 4, 5,};
const byte house1out[4] = {7, 8, 9, 10,};
const byte house2in[4] = {12, 13, 14, 15,};
const byte house2out[4] = {17, 18, 19, 20,};

const byte groupCount = 5;
const byte *groups[groupCount] = {lantern, house1in, house1out, house2in, house2out,};
const byte groupLengths[groupCount] = {5, 4, 4, 4, 4,};

now my question is what should i put in the loop to make one of the groups burn?

its almost like this but than the rest of the code

#include <FastLED.h>
#define DATA_PIN 11
#define NUM_LEDS 60
#define CLOCK_PIN 13

CRGB leds[NUM_LEDS];

const byte downstairs[] = {1, 3, 5};
const byte downstairsCount = sizeof downstairs / sizeof downstairs[0];
const byte upstairs[] = {2, 4};
const byte upstairsCount = sizeof upstairs / sizeof upstairs[0];
const byte garden[] = {6, 7, 8};
const byte gardenCount = sizeof garden / sizeof garden[0];
const byte shed[] = {9, 10};
const byte shedCount = sizeof shed / sizeof shed[0];

const byte groupCount = 4;
const byte *groups[groupCount] = {downstairs, upstairs, garden, shed};
const byte groupLengths[groupCount] = {downstairsCount, upstairsCount, 
                                                                   gardenCount, shedCount};

void setup() {
  {FastLED.addLeds<APA102, DATA_PIN, CLOCK_PIN, BGR>(leds,NUM_LEDS);
  FastLED.setBrightness(50);
  FastLED.clear();}

  for (byte i = 0; i < groupCount; i++)
  {
    for (byte j = 0; j < groupLengths[i]; j++)
    {
      byte value = groups[i][j];
    }
  };
  
}


void loop() {
  for (int downstairs = downstairs; downstairs < downstairs; downstairs++) 
  leds[downstairs] = CRGB::Blue;
  FastLED.show();
}

i programmed this but i don't understand how to name my const byte and make it work in the void loop,

I partly found this code on the forum

Any variable with a valid name, declared outside of the setup or loop functions, will be accessible with in the loop function.

If you run into a problem, post the error messages as well as the code.

could you type this correctly so i can see how it works? @jremington

I don't know what you want to do, or what "works correctly" means.

You have declared downstairs to be a global array of values. It makes no sense to use a for loop variable named "downstairs", call it "i" or something else.

Keep this link close by:

https://www.arduino.cc/reference/en/

I made a group called downstairs with led number 1 3 5 in it I would like to have these 3 lit at the same time in a loop.

I also have several other groups. containing LEDs

Find the rest of the code, study it all very carefully, and make sure that you understand all of the code, before mangling it beyond recognition.

this is where i found the code
but i don't get it

Doesn't seem likely, does it?

no I know that's not right but I don't know what it should be could you type a correct int for me?

@diekieboy

TOPIC MERGED.

Could you take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum.

downstairs < downstairsCount

?