Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a delay function available that does not use millis() which itself makes use of a timer? Does not need to be hyper-exact.

share|improve this question
up vote 4 down vote accepted
delayMicroseconds(1000);// maximum delay is 65535 uS


#include <util/delay.h>
share|improve this answer
delayMicroseconds() does not accept long int (32-bits) but only unsigned int (16-bits), hence the maximum you can pass it is 65535. – jfpoilpret Aug 3 '14 at 13:03
Good catch jfpoilpret, thanks. – Gerben Aug 3 '14 at 17:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.