Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //G02_IV
- void ActualizaVisorTiempo(void)
- {
- char cadena[5];
- char cadena2[5];
- static unsigned long tiempo_mar = 0, tiempo_det = 0;
- if (modo_motor == MODO_PARADO)
- {
- tiempo_det = millis() - tiempo_mar;
- lcd.setCursor(0, 0);
- lcd.print("Parado");
- sprintf(cadena, "%04ld", tiempo_det / 1000);
- lcd.setCursor(12, 0);
- lcd.print(cadena);
- }
- if (modo_motor == (MODO_ESTRELLA || MODO_TRIANGULO))
- {
- tiempo_mar = millis() - tiempo_det;
- lcd.setCursor(0, 0);
- lcd.print("Marchando");
- sprintf(cadena2, "%04ld", tiempo_mar / 1000);
- lcd.setCursor(12, 0);
- lcd.print(cadena2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement