Please advise how to revise this following code for a Ping to suit a Devantech SR05 Distance Sensor:
I am trying to use the Mode 2 of the Devantech which uses the same pin for Input and Output.
I want to measure the distance in cm or inches.
Thank you for your help.
Apart from the divide by two and the trigger pulse length, I don't think it needs any mods.