Arduino Multitasking Tutorial – How to use millis() in Arduino Code
Here in this tutorial we will learn How Arduino performs Multitasking. Generally a delay() function is used in Arduino for a periodic task like LED Blinking but this delay() function halt the program for some definitive time and don’t allow other operations to perform. So this article explains how we can avoid use of delay() function and replace it with millis() to perform more than one tasks simultaneously and make the Arduino a Multitasking controller. Before going into detail let’s start with understating Multitasking.
Check out the full tutorial here: https://circuitdigest.com/microcontroller-projects/arduino-multitasking-using-millis-in-arduino