|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
13 long tEcho =
ping(pin);
14 int cmDist = tEcho / 58;
20 long tEcho =
ping(pin);
21 int inDist = tEcho / 148;
int ping_cm(int pin)
Report Ping))) measurement as a centimeter distance.
int ping_inches(int pin)
Report Ping))) measurement as an inch distance.
int ping(int pin)
Measure echo time in terms of Propeller system clock ticks.