Skip to main content

New answers tagged

3 votes

I am using millis () function but after one iteration it does not check the condition and enters the loop. What should I do?

The millis()-based programming idiom you are using is intended to handle delays without ever blocking the program in a delay() call. Then you are completely defeating its purpose by calling delay(...
Edgar Bonet's user avatar
  • 43.5k

Top 50 recent answers are included