Why is Using Delay() Considered Bad Practice?
The delay() function allows you to pause the execution of your Arduino program for a specified period. For that purpose, the method requires you to supply it with a whole number that specifies how many milliseconds the program should wait. When used in simple sketches, you might not notice a difference when using the delay() function. Under the hood, the delay() function drastically changes the microcontroller’s behavior, especially in multi-threaded programs.
|
|
Scooped by
Gumersindo Fernández
onto tecno4 April 27, 2022 10:29 AM
|
Your new post is loading...