Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HCSR04 by
Diff: hcsr04.h
- Revision:
- 6:4be4fcd0c171
- Parent:
- 4:33938a97d904
- Child:
- 7:71da0dbf4400
diff -r e70a24a88131 -r 4be4fcd0c171 hcsr04.h
--- a/hcsr04.h Sat Mar 30 18:50:32 2013 +0000
+++ b/hcsr04.h Sat Mar 30 18:52:13 2013 +0000
@@ -29,14 +29,14 @@
/** Distance Measure Class(es)
*/
-class DistMeasure
+class HCSR04
{
public:
- /** Create a DistMeasure object connected to the specified pin
+ /** Create a HCSR04 object connected to the specified pin
* @param pin i/o pin to connect to
*/
- DistMeasure(PinName TrigPin,PinName EchoPin);
- ~DistMeasure();
+ HCSR04(PinName TrigPin,PinName EchoPin);
+ ~HCSR04();
/** Return the distance from obstacle in cm
* @param distance in cms and returns -1, in case of failure
