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
delayMicroseconds(1000);// maximum delay is 65535 uS
or
#include <util/delay.h>
_delay_ms(1);
-
3
delayMicroseconds()
does not acceptlong int
(32-bits) but onlyunsigned int
(16-bits), hence the maximum you can pass it is65535
. Aug 3, 2014 at 13:03