We all have written arduino nodes where sometime or the other we may have used the Delay function.
Well the use of delay function is it stops the execution of codes for specified amountof time.
What most people don't know is that it stops the Arduino to perform any other action during that specified period.
Means if you provided a delay of 10000 milli secords, then for 10 seconds the arduino will not do anything, it will remain idle.
This is not the expectation when we build a project, to let our micro-controller do nothing. We obviously want it to continuously read the
sensors and perform task accordingly.
so here we are going to tell you how to achieve the same functionality as delay function without actually using it.
To learn, watch the complete video.
For code, please comment down your email-ids,
Thank you.
Music Credit:
Follow Me on:
Twitter:
0 Comments