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:
- 3:9a7899cf5e3a
- Parent:
- 2:aa59a9c531be
- Child:
- 4:aae70f15357f
--- a/HCSR04.h Sat Dec 05 09:42:14 2015 +0000
+++ b/HCSR04.h Sun Dec 06 15:13:54 2015 +0000
@@ -40,6 +40,8 @@
DigitalOut trigger; // trigger pin
Timer timer; // echo pulsewidth measurement
float distance; // store the distance in cm
+ float minDistance; // minimum measurable distance
+ float maxDistance; // maximum measurable distance
/** Start the timer. */
void startTimer();
