How to use millis() to timed the rotation of the motor