![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Proof of concept for distance and temperature monitoring
Dependencies: mbed mbedConnectorInterface mbedEndpointNetwork
Diff: hcsr04.cpp
- Revision:
- 7:939fdc8df95b
- Parent:
- 0:cb422b231ea5
- Child:
- 8:c69fe28366d8
diff -r bbea44df21e8 -r 939fdc8df95b hcsr04.cpp --- a/hcsr04.cpp Tue May 05 05:18:03 2015 +0000 +++ b/hcsr04.cpp Wed May 06 02:53:36 2015 +0000 @@ -41,6 +41,9 @@ } void HCSR04::start(void) { + pulsedur = 0; + distance = 0; + trigger=1; wait_us(10); trigger=0;