Advertisement
hidromotic

G04_VII

Apr 11th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. //G04_VII
  2. void ProcesaBotones(void)
  3. {
  4. if (BOTON_INC == boton)
  5. {
  6. tpo_arranque_ms = (tpo_arranque_ms + 1000);
  7. tpo_arranque_ms = (20000 < tpo_arranque_ms) ? (20000) : (tpo_arranque_ms);
  8.  
  9. }
  10.  
  11. if (BOTON_DEC == boton)
  12. {
  13. tpo_arranque_ms = (tpo_arranque_ms - 1000);
  14. tpo_arranque_ms = (tpo_arranque_ms < 1000) ? (1000) : (tpo_arranque_ms);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement