Hi! I want to do a countdown timer. With the usually led blink in milliseconds () everything is easy, but when trying to make a countdown timer, problems arise. I send the number 1, then the LED lights up and the timer starts, which should turn off the led after 5 seconds, but the LED remains on and does not respond to the timer. What is my error?
Thanks for the help! The timer started working when I inserted it into the loop() function. Is there a way to make this timer work inside the led() function?