wait microseconds available?
Development
3
Posts
2
Posters
600
Views
2
Watching
-
I see from the API that wait() is preferred over delay(). But what about delayMicroseconds? Is it OK to use 'delayMicroseconds' for very short durations or is there a 'waitMicroseconds' function that is supposed to be used?
@skywatch wait() is prefered because it will process MySensors library tasks (including checking for incoming messages) instead of blocking all the processing.
For very short tasks it's fine to use delayMicrosecond(). A "wait" version would make no sense as processing of MySensors would probably take more time than the duration you ask.