Hi, guys!
Following one of Arduino course on Udemy platform I found very useful, in my opinion, advice how to avoid using delay()
function, because it is not good (I am beginner in Arduino world). The lector suggest to use two variables with millis()
function as start mark and current time inside loop()
function. Code example is below:
I can trust in code above and believe that I have real 500 ms between part of my programm.
Are you agree ?
Happy coding!
Best regards, Denys
Top comments (0)