5

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.

asked Aug 3, 2014 at 10:33

1 Answer 1

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

or

#include <util/delay.h>
_delay_ms(1);
answered Aug 3, 2014 at 10:55
1
  • 3
    delayMicroseconds() does not accept long int (32-bits) but only unsigned int (16-bits), hence the maximum you can pass it is 65535. Commented Aug 3, 2014 at 13:03

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.