hi, I am doing a simple, led sketch from a tutorial. it works if you copy and stack but it doesn’t turn “for” orange signifying it understands the condition??? the tutorial is from july 2014, has something changed?
at point 39:45 he explains the “for”
the sketch I am using…
int redLED=10;
int yelLED=9;
int grnLED=8;
int onTime=1000;
int offTime=1000;
int numRedBlink=5;
void setup() {
// put your setup code here, to run once:
pinMode(redLED,OUTPUT);
pinMode(yelLED,OUTPUT);
pinMode(grnLED,OUTPUT);
}
void loop() {
for (int j=1; j<=numRedBlink; j=j+1); {
digitalWrite (redLED,HIGH);
delay(onTime);
digitalWrite(redLED, LOW);
delay(offTime);
}
digitalWrite (yelLED,HIGH);
delay(onTime);
digitalWrite (yelLED,LOW);
delay (offTime);
digitalWrite (grnLED,HIGH);
delay (onTime);
digitalWrite (grnLED,LOW);
delay(offTime);
}