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.
Input/Ultrasonic/USS/USS.h@22:7d93f79a3686, 2019-09-17 (annotated)
- Committer:
- M_souta
- Date:
- Tue Sep 17 04:40:17 2019 +0000
- Revision:
- 22:7d93f79a3686
kkk
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| M_souta | 22:7d93f79a3686 | 1 | #ifndef USS_H_ |
| M_souta | 22:7d93f79a3686 | 2 | #define USS_H_ |
| M_souta | 22:7d93f79a3686 | 3 | |
| M_souta | 22:7d93f79a3686 | 4 | #include "mbed.h" |
| M_souta | 22:7d93f79a3686 | 5 | #include "LM61CIZ.h" |
| M_souta | 22:7d93f79a3686 | 6 | #include "Pulse.h" |
| M_souta | 22:7d93f79a3686 | 7 | |
| M_souta | 22:7d93f79a3686 | 8 | class USS { |
| M_souta | 22:7d93f79a3686 | 9 | public: |
| M_souta | 22:7d93f79a3686 | 10 | USS(PinName echoPin, PinName trigPin, PinName tempPin); |
| M_souta | 22:7d93f79a3686 | 11 | double ReadDis(void); |
| M_souta | 22:7d93f79a3686 | 12 | double GetDis(void); |
| M_souta | 22:7d93f79a3686 | 13 | private: |
| M_souta | 22:7d93f79a3686 | 14 | float distance_; |
| M_souta | 22:7d93f79a3686 | 15 | PulseInOut echo_; |
| M_souta | 22:7d93f79a3686 | 16 | PulseInOut trig_; |
| M_souta | 22:7d93f79a3686 | 17 | LM61CIZ temp_; |
| M_souta | 22:7d93f79a3686 | 18 | }; |
| M_souta | 22:7d93f79a3686 | 19 | |
| M_souta | 22:7d93f79a3686 | 20 | #endif //ULTRASONI_H_ |