if ( int i =0, i < 5, i++) //increment by one until it reaches 5 blinks 5 times
What is that supposed to be?
I think you mean for that to be a "for", not an "if", and the sub clauses separated by a ; not a ,
And furthermore, you need to enclose the statements you want to loop with curley braces '{' and '}'.
Something like this:
const int led = 11; // declare pin 11 as led
void setup()
{
pinMode(led, OUTPUT);
}
void loop()
{
for ( int i = 0, i < 5, i++) //increment by one until it reaches 5 blinks 5 times
{
digitalWrite(led,HIGH);
delay(1500);
digitalWrite(led,LOW);
delay(5000);
}
}
However, since loop repeats forever, after it blinks 5 times, it will return from loop, and loop will be called again.