Advertisement
RuiViana

For

Aug 23rd, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1.  
  2. unsigned int tamanho;
  3. unsigned int corte;
  4. unsigned int number1;
  5. unsigned int number = 10;
  6.  
  7. void setup()
  8. {
  9. Serial.begin(9600);
  10. }
  11.  
  12. void loop()
  13. {
  14. for(unsigned int i = number; i>0; i--)
  15. {
  16. digitalWrite(tamanho, HIGH);
  17. delay(number1*1000);
  18. digitalWrite(tamanho, LOW);
  19. delay(500);
  20. digitalWrite(corte, HIGH);
  21. delay(500);
  22. digitalWrite(corte, LOW);
  23. delay(500);
  24. //printNumber(number);
  25. Serial.println(i);
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement