// timer use delay()
// program is write the coding LED RED start light-up in Timer 2minutes
// then LED Green light-up 5s and then LED Yellow light-up 3.5 minutes
// then all LED's off 0.5 s then repeat back the sequent
int Red = 13;
int Green = 12;
int Yellow = 11;
void setup() {
// put your setup code here, to run once:
pinMode(Red, OUTPUT);
pinMode(Green, OUTPUT);
pinMode(Yellow, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
// delay count in miliseconds
// delay(1000) = 1000 ms = 1 s
// to change the minutes calculate delay = Value * 60 * 1000
digitalWrite(Red, HIGH); // Red
delay(120000); // delay 2 miutes = 2 * 60 * 1000 = 120 000
digitalWrite(Green, HIGH);
delay(5000); // delay 5 sec = 5 * 1000 = 5 000
digitalWrite(Yellow, HIGH);
delay(210000); // delay 3.5 minute = 3.5 * 60 * 1000 = 210 000
digitalWrite(Red, LOW);
digitalWrite(Green, LOW);
digitalWrite(Yellow, LOW);
delay(5000);
}