Library and 'hello World' demo program for Seed Groove Ultrasonic distance meter. See also https://github.com/Seeed-Studio/Grove_Ultrasonic_Ranger/blob/master/Ultrasonic.h, http://www.seeedstudio.com/wiki/Grove_-_Ultrasonic_Ranger
Dependencies: Seed_Ultrasonic_Range mbed
Diff: main.cpp
- Revision:
- 1:9e37d8d9c360
- Parent:
- 0:8fa7c091d4de
--- a/main.cpp Sat Nov 01 20:47:28 2014 +0000 +++ b/main.cpp Sat Nov 01 20:50:18 2014 +0000 @@ -1,8 +1,7 @@ #include "mbed.h" #include "Ultrasonic.h" -Ultrasonic u(p1); - +Ultrasonic u(p1); // this must be a pin suitable for DigitalInOut DigitalOut led(LED1); int main() {