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.
Diff: hcsr04.h
- Revision:
- 0:2d8f1aed9d70
diff -r 000000000000 -r 2d8f1aed9d70 hcsr04.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hcsr04.h Mon Jul 06 13:59:08 2020 +0000
@@ -0,0 +1,18 @@
+/*#ifndef hcsr04_H
+#define hcsr04_H
+#include "mbed.h"
+
+class HCSR04 {
+ public:
+ HCSR04(PinName t, PinName e);
+ long echo_duration();
+ long distance();
+
+ private:
+ DigitalOut trig;
+ DigitalIn echo;
+ Timer timer;
+ long duration,distance_cm;
+};
+
+#endif*/
\ No newline at end of file