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: Input/Ultrasonic/USS/USS.h
- Revision:
- 22:7d93f79a3686
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Input/Ultrasonic/USS/USS.h Tue Sep 17 04:40:17 2019 +0000
@@ -0,0 +1,20 @@
+#ifndef USS_H_
+#define USS_H_
+
+#include "mbed.h"
+#include "LM61CIZ.h"
+#include "Pulse.h"
+
+class USS {
+ public:
+ USS(PinName echoPin, PinName trigPin, PinName tempPin);
+ double ReadDis(void);
+ double GetDis(void);
+ private:
+ float distance_;
+ PulseInOut echo_;
+ PulseInOut trig_;
+ LM61CIZ temp_;
+};
+
+#endif //ULTRASONI_H_
\ No newline at end of file