#define LED 2
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(2, OUTPUT); //RED
pinMode(21, OUTPUT); //YELLOW
pinMode(4, OUTPUT); //GREEN
pinMode(19, OUTPUT); //RED2
pinMode(18, OUTPUT); //YELLOW2
pinMode(5, OUTPUT); //GREEN2
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(2, HIGH); //RED
digitalWrite(5, HIGH); //GREEN
digitalWrite(21, LOW); // turn the LED off by making the voltage LOW
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
digitalWrite(19, LOW); // turn the LED off by making the voltage LOW
digitalWrite(18, LOW); // turn the LED off by making the voltage LOW
delay(5000); // wait for a second
digitalWrite(2,HIGH); // turn the LED off by making the voltage LOW
digitalWrite(5, LOW); // turn the LED off by making the voltage LOW
digitalWrite(21, LOW); // turn the LED off by making the voltage LOW
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
digitalWrite(19, LOW); // turn the LED off by making the voltage LOW
digitalWrite(18,HIGH); // turn the LED on (HIGH is the voltage level)
delay(3000); // wait for a second
digitalWrite(19, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(21, LOW); // turn the LED off by making the voltage LOW
digitalWrite(2, LOW); // turn the LED off by making the voltage LOW
digitalWrite(5, LOW); // turn the LED off by making the voltage LOW
digitalWrite(18, LOW); // turn the LED off by making the voltage LOW
delay(5000); // wait for a seconddigitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(21, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(18, LOW); // turn the LED off by making the voltage LOW
digitalWrite(5, LOW); // turn the LED off by making the voltage LOW
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
digitalWrite(19,HIGH); // turn the LED off by making the voltage LOW
digitalWrite(2, LOW); // turn the LED off by making the voltage LOW
delay(3000); // wait for a second
}