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
delayMicroseconds(1000);// maximum delay is 65535 uS
or
#include <util/delay.h>
_delay_ms(1);
answered Aug 3, 2014 at 10:55
-
3
delayMicroseconds()
does not acceptlong int
(32-bits) but onlyunsigned int
(16-bits), hence the maximum you can pass it is65535
.jfpoilpret– jfpoilpret2014年08月03日 13:03:53 +00:00Commented Aug 3, 2014 at 13:03