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: echo_sensor.cpp
- Revision:
- 1:29eeaabaa8e1
diff -r 341347d8ccbc -r 29eeaabaa8e1 echo_sensor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/echo_sensor.cpp Fri Oct 17 15:20:32 2014 +0000 @@ -0,0 +1,14 @@ +#include "echo_sensor.h" + +DigitalOut trigPin(echoPin_); +DigitalIn echoPin(echoPin_); + +int getEcho(void) +{ + return 0; +} + +void initEcho(void) +{ + trigPin = 0; +} \ No newline at end of file