Apparently, when this library is used on a non-Arduino-based device, the pulseIn() method, used to wait the echo, causes incompatibility problems.
To prevent any future problems, is recommended to use another strategy to read the length of the pulse (in microseconds), like using micros().
Apparently, when this library is used on a non-Arduino-based device, the
pulseIn()
method, used to wait the echo, causes incompatibility problems. To prevent any future problems, is recommended to use another strategy to read the length of the pulse (in microseconds), like usingmicros()
.