Please help me, I am calling a function with a button and switch case statement. in one case i want to run an led on pin 2 and a relay on pin 12 as HIGH and after 1minutes both must turn OFF, and never come active until (RESET)
void fn2() {
digitalWrite(2, HIGH);
digitalWrite(12, HIGH);
delay (100);
Serial.println("TIMER RUNNING ")
Here need to add function of timer
if timer value > 1minute
digitalWrite(2, LOW);
digitalWrite(12, LOW);
Serial.println("TIMEOUT ")