For a project I have to built a countdown timer using the serial printer. I need to use the function “millis” and the countdown have to be from 10 seconds to zero with using “delay”. It has to countdown in seconds. The countdowntimer also has to check if the point of “zero” has been reached and then has to stop or print zereo as I wrote in the code.
I have written a code but it doesn’t work. It countsdown but when reaching "zero"it doesn’t stop. I don’t know what is wrong. Can anybody help me? It is important to use the millis, delay and an “if” to check or zero has been reached.
Test_program.ino (474 Bytes)