Arduino Toolkit - @ultrasonic/readEchoTime


: time = readEchoTime (dev)

Measure the time for waves to reflect back to the ultrasonic device

Inputs

dev - connected ultrasonic device opened using ultrasonic()

Outputs

time - time in seconds, or Inf if out of sensor range

See also: arduino, ultrasonic.