Advertisement
baldengineer

Just to try it

Jul 5th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. unsigned long currentTime = 0;
  2.  
  3. void setup() {
  4.   Serial.begin(9600);
  5.   Serial.println("abc run\n");
  6. }
  7.  
  8. void loop()
  9. {
  10.   Serial.print("Time: ");
  11.   currentTime = millis();
  12.   //prints time since program started
  13.   Serial.println(currentTime);
  14.   // wait a second so as not to send massive amounts of data
  15.   delay(1000);
  16. // then comment out delay and use delayMicroseconds
  17. // delayMicroseconds(50000);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement