Hello, I want to Put a timer delay every time arduino powers up and also want to disable it from input push button whenever I want to bypass the timer and jump straight to program.
Please give me some help ![]()
Rushing this a bit to be the first response. ![]()
while (digitalRead(inputPin) == HIGH and millis() < 5000);
gives you a 5 second delay, and waits for a ground (LOW) on the switch input, which must have a pull up resistor. It belongs in setup().
Thanks Buddy ![]()
aarg:
while (digitalRead(inputPin) == HIGH and millis() < 5000);
Will need to be:
while (digitalRead(inputPin) == HIGH && millis() < 5000);