Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

delay without blocking

void millisdelay(long intervaltime) {
  long thetimenow = millis();
  while (millis() < thetimenow + intervaltime)
  {
    // nothing but wait
  }
}
millisdelay(5000); // delay 5000 seconds
 
PREVIOUS NEXT
Tagged: #delay #blocking
ADD COMMENT
Topic
Name
6+7 =