each light should blink 2 times in a bar of lights HELP ME!!

m confussed
int l;
int d=200;
int j=0;
void setup (){
for (l=4;l<13;l++)
pinMode(l,OUTPUT);
}
void loop(){
for(l=4;l<13;l++)
{
for(j=1;j<2;j++)
{
digitalWrite(l,HIGH); // why this j loop is not making light blink twice
delay (d);
digitalWrite(l,LOW);}

}
}

for(j=1;j<2;j++)
{
digitalWrite(l,HIGH); // why this j loop is not making light blink twice
delay (d);
digitalWrite(l,LOW);
}

Try:

for(j=1;j<2;j++)
{
digitalWrite(l,HIGH); // why this j loop is not making light blink twice
delay (d);
digitalWrite(l,LOW);
delay(d);
}

thanks :slight_smile: it worked i got it

Do you understand why it works now ?

Looks like you just helped him cheat on a school problem.

.