Don't know what's wrong with my code

Hey everyone.

I tried to make a little code as i'm learning, but it isn't working.

Here is the code :

int time=500;
int pinLed[5]={2,6,4,3,5};

void setup() {
for (int i=1;i<7;i++)
{
pinMode(pinLed*,OUTPUT);*
_ digitalWrite(pinLed*,LOW);_
_
}_
_
for (int i=1;i<21;i++)_
_
{_
_
for (int p=2;p<6;p++)_
_
{_
_
digitalWrite(pinLed[p],HIGH);_
_
delay(temps);_
_
digitalWrite(pinLed[p],LOW);_
_
time=time-100;_
_
}_
_
}*_

}
void loop() {
}
[/color]
And the circuit :

https://imgur.com/a/iYkOT3H*_
_
I know it's a mess, but i did my best to reproduce it*

I want it to light up one LED after each other (like a wave) and make a faster "wave" after each "wave".
But, it just light up the middle LED, then the left-bottom, the right-bottom, the middle one again but faster, and then the right-bottom stay lighted up.
I checked if the LED weren't broke or something but everything was okay. I lighted up each of them individually without problems.
I don't know what do to next, so i decided to ask for help here.
If anyone have and idea, i will be grateful for their help.
Thanks you.
A french angry guy.

Some of your code is green, some of it is in italics (and green).

I don't know what "working" means.

The green and italic part is done on purpose, so that we can see it more easily.

When i say "working", i mean the program isn't doing what i would like him to do.

int time=500;
int pinLed[5]={2,6,4,3,5};
                          
void setup() {
    for (int i=1;i<7;i++)
  {
    pinMode(pinLed,OUTPUT);
    digitalWrite(pinLed,LOW);
  }

if you create an array of pin nrs, you should refer to them like this :

int time=500;
int pinLed[5]={2,6,4,3,5};
                          
void setup() {
    for (int i=0;i<5;i++)
  {
    pinMode(pinLed,OUTPUT);  // an array starts at 0 and runs to the size-1
    digitalWrite(pinLed[i],LOW);
  }

the same here :

for (int p=0;p<5;p++)  // go through your pins
      {
        digitalWrite(pinLed[p],HIGH);
        delay(temps);
        digitalWrite(pinLed[p],LOW);
        //time=time-100;  // do not substract you'll be running in minus, real soon
       time=(time*9)/10;  //but multiply by something a little less than 1
      }

Small correction...

void setup() {
    for (int i=0;i<5;i++)
  {
    pinMode(pinLed[i],OUTPUT);  // an array starts at 0 and runs to the size-1
    digitalWrite(pinLed[i],LOW);
  }

Blackfin:
Small correction...

void setup() {

for (int i=0;i<5;i++)
  {
    pinMode(pinLed[i],OUTPUT);  // an array starts at 0 and runs to the size-1
    digitalWrite(pinLed[i],LOW);
  }

Ah sorry ! yes !!

i saw that my code on this page has a little problem, the italic part wasn't done on purpose at all (sorry for that),

i put the [ i ] after my pinLed and digitalWrite but it thought it was an italic part.

After a try on your codes, it works.

I replaced time=time-100 by time=(time*9)/10, the delay was too restricted, so it hadn't the time to succesfully light up.

Thanks you guys for your help.

i put the [ i ] after my pinLed and digitalWrite but it thought it was an italic part

That's why you are asked to use code tags around your code to prevent that happening