ErickSimoes / Ultrasonic

Minimalist library for Ultrasonic Module HC-SR04, PING))) and Seeed SEN136B5B to Arduino
MIT License
137 stars 65 forks source link

No longer use the 'pulseIn()' method #45

Closed ErickSimoes closed 6 years ago

ErickSimoes commented 6 years ago

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().

OtacilioN commented 6 years ago

Working to implement the timeout and complete this issue