Library for interfacing with the Parallax Ping))) sensor.
Diff: ping.h
- Revision:
- 1:72fbcb01291d
- Parent:
- 0:99ee7c741e9d
- Child:
- 3:0c337c262d84
--- a/ping.h Sun Jul 27 19:12:34 2014 +0000 +++ b/ping.h Sun Jul 27 19:45:01 2014 +0000 @@ -4,6 +4,8 @@ #include "mbed.h" #include "FPointer.h" +#define MEASUREMENT_DELAY_US 200 + /** * Class for interfacing with the Parallax Ping))) Ultrasonic Sensor * @@ -79,6 +81,7 @@ uint32_t mStartTime; Timer mTimer; + Ticker mMeasureDelayTicker; uint32_t mRawReading; @@ -86,6 +89,7 @@ void start(); void stop(); + void nextMeasurement(); }; #endif