i don't know how to do a delay with my following project. i cant use millis because millis starts immediately after upload or reset.
i have a push button on input 2.
led on pin 5.
now i want a timed delay so that initial button press will light up the led.
if the push button hasnt been pressed within the next 5 second. turn off the led or else keep the led on.
(really using a current switch to show if the stove is on or not. the stove current goes high to low because the element eventually gets to the required temperature but i want to show that the switch is still closed its just not time for current to flow yet but indications is that the stove is on. or led in my example).
thankk you. i don't have any source code that i i started with but i did alot of example.
debounce doesnt really work because it ignores 'noice' i want to ideally continually hear noise but only do something if the signal is there within a specific period of time.
thank you!