int redLED=8; //declaring redLED as an int and set in 8 position
int yellowLED=9;// declaring yellowLED as an int and set in postipn 9
int redOnTime = 500; //red LED is set to be on 500 milliseconds or a half second
int redOffTime= 500; //red LED is set to be off for 500 milliseconds or half a second
int yellowOnTime = 1000; //yellow is set to be on for 1000 milliseconds
int yellowOffTime = 500; //yellow LED is set to be off half a second
int numRedBlink=6; //j will be my counter in for loop
void setup() {
pinMode { redLED, OUTPUT };
pinMode { yellowLED, INPUT};
}
void loop() {
for{int j=1; j<=numRedBlink;j=j+1}; {
digitalWrite{redLED, HIGH}; //turn red LED on
delay {redOnTime}; //wait
digitalWrite {redLED, LOW}; // turn red LED off
delay {redOffTime}; //wait
}
digitalWrite{yellowLED, HIGH}; //turn yellow LED on
delay {yellowOnTime}; //wait
digitalWrite{yellowLED,LOW}; //turn yellow LED off
delay{yellowOffTime}; //wait
}
This is what I coded but I get and error saying it is an exit error 1. excpect " ; " before " } "
