millis() is a function that keeps track of how long arduino has been ON, or from the moment the reset button of the arduino is pressed, and produce the result in milliseconds.
With this function and some other conditional functions, you can keep track of a certain time frame and blink the LED with this time frame. As an example, you can choose to say, if the time from when the arduino has been ON is 1 second, i.e. 1000 milliseconds, ledPin should come ON, etc. if you are able to realize this blink without delay, you can include button press code in your sketch without fear of design malfunction.
To implement this design, the circuit is a simple Arduino circuit with one LED connected to pin 2 of the Arduino using a resistor.
explaining the code
With the loop function, the process keeps repeating with the LED blinking after every one second.
End Of Post