Look in the several things at a time tutorial to see how different things can be done at their own times. Those delay() calls mess up the millis() timing. Get rid of delays completely.
When you post code, post the whole code.
Look in the several things at a time tutorial to see how different things can be done at their own times. Those delay() calls mess up the millis() timing. Get rid of delays completely.
When you post code, post the whole code.