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?