Guest User

Untitled

a guest
Sep 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include "Arduino.h"
  2.  
  3. void setup()
  4. {
  5.  
  6. }
  7.  
  8.  
  9. void loop()
  10. {
  11. esp8266::Timeout mytimeout(100);
  12.  
  13. while (!mytimeout.expired())
  14. {
  15. Serial.print(".");
  16. delay(10);
  17. }
  18. Serial.println();
  19.  
  20. mytimeout.reset();
  21. while(!mytimeout)
  22. {
  23. Serial.print("*");
  24. delay(20);
  25. }
  26. Serial.println();
  27.  
  28. esp8266::Timeout shorttimeout(10);
  29. while(!shorttimeout)
  30. {
  31. Serial.print("=");
  32. delay(1);
  33. }
  34. Serial.println();
  35. }
Add Comment
Please, Sign In to add comment