-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
What are the considerations for having a busy loop timeout of 500ms? Isn't this long enough to potentially interfere with other ImpOS functions? I realize that this method may give better accuracy, but how bad would it be to rely on an interrupt and callback instead?
I was thinking of implementing it along the lines of
https://gist.github.com/cat-haines/5492082
But given that the range of the HC-SR04 is not more than 4 meters, my calculation says that the timeout value should only need to be something like 25ms.
Metadata
Metadata
Assignees
Labels
No labels