int redl = 10;
int yellowl = 9;
int greenl = 8;
int red2 = 12;
int green = 11;
void setup();
'('
pinMode (redl, OUTPUT) ;
'('
pinMode(yellowl, OUTPUT) ;
'('
pinMode(greenl, OUTPUT) ;
'('
pinMode(red2, OUTPUT) ;
'('
pinMode(green2, OUTPUT) ;
}
void loop();
'voidchangeLights' int ';'
delay(1000)
void changeLights() { ;
digitalWrite(greenl, Low);
digitalWrite(yellow, HIGH);
digitalWrite(red2, HIGH);
delay(4000) ;
// turn yellow off, and oppposite green and red
digitalWrite(yellowl, LOW) ;
digitalWrite(redl, HIGH) ;
digitalWrite(red2, LOW) ;
digitalWrite(green2, HIGH) ;
delay(50000) ;
digitalWrite(green2, LOW) ;
digitalWrite(red, LOW) ;
digitalWrite(greenl, HIGH) ;
digitalWrite(red2, HIGH)
delay(5000) ;
digitalWrite(greenl, LOW) ;
digitalWrite(yellowl, HIGH) ;
digitalWrite(redl, LOW) ;
digitalWrite(red2, HIGH) ;
delay(1000) ;
'{'
What I have tried:
Having a problem in coding
Traffic light project
Pls solve