//Projrct 2 - Traffic Lights Arduino
int ledDey = 500; //delay in between changes
int redPin = 10;
int yellowPin = 9;
int greenPin = 8;
void setup() {
pinMode(redPin, OUTPUT);
pinMode(yellowpin, OUTPUT);
pinMode(greenPin, OUTPUT);
}
void loop() {
digitalWrite(redPin, HIGH); //turn the red light
delay(ledDelay); //wait 5 second
digitalWrite(yellowPin, HIGH); //trun the yellow light