#define Green_Led 4
#define Yellow_Led 17
#define Red_Led 16
void setup() {
// put your setup code here, to run once:
pinMode(Green_Led, OUTPUT);
pinMode(Yellow_Led, OUTPUT);
pinMode(Red_Led, OUTPUT);
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(Green_Led, HIGH);
Serial.println("Green Led Is Turned On");
delay(3000);
digitalWrite(Green_Led, LOW);
delay(500); //3 seconds
//yellow
digitalWrite(Yellow_Led, HIGH);
Serial.println("Yellow Led Is Turned On");
delay(3000);
digitalWrite(Yellow_Led, LOW);
delay(500);
//Red
digitalWrite(Red_Led, HIGH);
Serial.println("Red Led Is Turned On");
delay(3000);
digitalWrite(Red_Led, LOW);
delay(500);
}