Advertisement
hidromotic

G09_I

Apr 11th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. //G09_I
  2. void CtrlModoMotor(void)
  3. {
  4. if (modo_motor == 0 && boton == 0)
  5. {
  6. MODO_PARADO;
  7. tpo_arranque_ms = millis();
  8. }
  9. if (modo_motor == 1 && boton == 1 && millis() - tpo_arranque_ms > 1000)
  10. {
  11. MODO_ESTRELLA;
  12. tpo_arranque_ms = millis();
  13. }
  14. if (modo_motor == 2 && boton == 1 && millis() - tpo_arranque_ms > 1000)
  15. {
  16. MODO_TRIANGULO;
  17. tpo_arranque_ms = millis();
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement