Guest User

Untitled

a guest
Jul 17th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. unsigned int count = 0;
  2. int wait = 1000;
  3.  
  4. void setup()
  5. {
  6. Serial.begin(9600);
  7. }
  8. void loop()
  9. {
  10. long current = millis();
  11. if((millis() - current) == wait)
  12. {
  13. count++;
  14. }
  15. Serial.println(count);
  16. }
Add Comment
Please, Sign In to add comment