Prog eventielle avec millis

bonjour,
tu prends ton heure, une boucle while, une lecture du bouton, si appuie, envoi sur une fonction.

while (millis() - heure < 10000){
   moteur(UP);
                if (digitalRead(bouton_stop) == HIGH){
               moteur(STOP);
                }
}