Hi Kevin,
The above error is because you are trying to write some code after the void loop (). There is an issue with the flower braces that you have used. The void loop () code should ideally look like :
void loop(){
pushbutton = digitalRead(pushbutton);
if (pushbutton == HIGH)
{
digitalWrite(greenlight, HIGH);
digitalWrite(redman, HIGH);
}
else
{
digitalWrite(greenlight, LOW);
digitalWrite(amberlight HIGH);
digitalWrite(waitlight, HIGH);
delay(3000)
digitalWrite(amberlight, LOW);
digitalWrite(redlight, HIGH);
digitalWrite(greenman, HIGH);
digitalWrite(waitlight, Low);
delay(10000)
digitalWrite(redlight, LOW);
digitalWrite(greenman, LOW);
digitalWrite(redman, HIGH);
digitalWrite(amberlight, HIGH);
delay(3000)
digitalWrite(amberlight, LOW);
digitalWrite(greenlight, HIGH);
}
}
There is also an extra semicolon in your code at the end of 'if' statement which I have removed.