PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Measure Ping))) Ultrasonic Distance Sensor values in cm, inches, or microsecond echo return times. More...
#include "simpletools.h"
Go to the source code of this file.
Functions | |
int | ping (int pin) |
Measure echo time in terms of Propeller system clock ticks. More... | |
int | ping_cm (int pin) |
Report Ping))) measurement as a centimeter distance. More... | |
int | ping_inches (int pin) |
Report Ping))) measurement as an inch distance. More... | |
Measure Ping))) Ultrasonic Distance Sensor values in cm, inches, or microsecond echo return times.
Definition in file ping.h.
int ping | ( | int | pin | ) |
Measure echo time in terms of Propeller system clock ticks.
pin | Number of the I/O pin to set to connected to the Ping))) sensor's SIG line. |
Definition at line 3 of file ping.c.
int ping_cm | ( | int | pin | ) |