EES Stephen Perse Sixth Form
/
SRF05_HelloWorld
works
Fork of SRF05_HelloWorld by
Diff: main.cpp
- Revision:
- 1:612f5d9de345
- Parent:
- 0:d87132986e8f
- Child:
- 2:f9045153af1e
diff -r d87132986e8f -r 612f5d9de345 main.cpp --- a/main.cpp Fri Nov 19 22:36:20 2010 +0000 +++ b/main.cpp Tue Nov 29 15:48:54 2016 +0000 @@ -3,11 +3,11 @@ #include "mbed.h" #include "SRF05.h" -SRF05 srf(p13, p14); +SRF05 srf(p9, p10); int main() { while(1) { - printf("Distance = %.1f\n", srf.read()); + printf("Distance = %.1f\n\r", srf.read()); wait(0.2); } } \ No newline at end of file