Delay in microseconds


#1

I have found the delay function, which delays the execution for given time in milliseconds.
However i would like to have one in microseconds.

Is this currently possible?


#2

There’s no reason why you couldn’t add this; see:

Adding your own functions

Although there’s no Arduino core function that gives a delay in microseconds you could implement it using micros(). Note that on the 16-bit platforms of uLisp you won’t be able to get a delay of more than 32767 microseconds.


#3

Great tip!

Works like a charm!

(For later viewer of this topic. Just follow the instructions in Adding your own functions)