test
Dependencies: MbedJSONValue DISCO_L475VG_IOT01A_wifi mbed-http
Diff: US100.h
- Revision:
- 0:065178c282bd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/US100.h Tue Jan 01 11:48:52 2019 +0000 @@ -0,0 +1,16 @@ +#ifndef US100_H +#define US100_H +#include "mbed.h" +class US100 +{ +public: + US100(PinName t, PinName e); + int echo_duration(); + int distance(); +private: + DigitalOut trig; + DigitalIn echo; + Timer timer; +}; + +#endif \ No newline at end of file