millis() Tutorial: Arduino Multitasking

Shortly after learning how to flash one LED, most new Arduino users move on to flashing two or more LEDs.
The millis() function is one of the most powerful functions of the Arduino platform. This function returns the number of milliseconds the current sketch has been running since the last reset. This may not seem to be highly useful until you consider it as a replacement for the delay() function. Now millis() itself cannot cause a delay, but you can use it create a virtual delay.
(Read the rest of this entry…)

