Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
avandalen authored Sep 15, 2017
1 parent bfa0516 commit b4cc5b8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions testOneShot/testOneShot.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include <Arduino.h>
#include <Streaming.h>
#include "avdweb_VirtualDelay.h"

VirtualDelay delay1;

void setup()
{ Serial.begin(9600);
Serial << "\ntestOneShot 2s\n";
}

void loop()
{ DO_ONCE(delay1.start(2000)) // do only one time in the loop
if(delay1.elapsed()) Serial << millis() << "ms" ;
}



0 comments on commit b4cc5b8

Please sign in to comment.