R/C Tech Forums - View Single Post - The Homebuilt Dynamometer (Dyno)Thread!!!
Old 04-14-2024 | 10:08 AM
  #137  
kufman's Avatar
kufman
Tech Elite
iTrader: (7)
 
Joined: Feb 2004
Posts: 3,787
From: Elburn, IL
Default

Originally Posted by Sabin
Instead of the delay() command, you could use the millis() command. Using delay sets the arudino board to simply stop dead until the wait time is over. Millis can be used to let the board deal with other tasks while waiting. That should make your code a bit more efficient.
So construct a little loop using millis() to create the delay? Or us the modulo operator and every time it is 0, rerun the main loop?
kufman is offline