tunda tanpa memblokir

void millisdelay(long intervaltime) {
  long thetimenow = millis();
  while (millis() < thetimenow + intervaltime)
  {
    // nothing but wait
  }
}
millisdelay(5000); // delay 5000 seconds
Madmadz16