Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Arduino.h"
- void setup()
- {
- }
- void loop()
- {
- esp8266::Timeout mytimeout(100);
- while (!mytimeout.expired())
- {
- Serial.print(".");
- delay(10);
- }
- Serial.println();
- mytimeout.reset();
- while(!mytimeout)
- {
- Serial.print("*");
- delay(20);
- }
- Serial.println();
- esp8266::Timeout shorttimeout(10);
- while(!shorttimeout)
- {
- Serial.print("=");
- delay(1);
- }
- Serial.println();
- }
Add Comment
Please, Sign In to add comment