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.

1 Answer 1

delayMicroseconds(1000);// maximum delay is 65535 uS


#include <util/delay.h>
  • 3
    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, 2014 at 13:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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