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.
Fork of SRF08HelloWorld by
Revision 1:1228beb2d7fe, committed 2015-02-13
- Comitter:
- wj8000000
- Date:
- Fri Feb 13 08:25:24 2015 +0000
- Parent:
- 0:b757a3e4f64e
- Commit message:
- uyuiy
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b757a3e4f64e -r 1228beb2d7fe main.cpp
--- a/main.cpp Wed Jul 17 12:50:51 2013 +0000
+++ b/main.cpp Fri Feb 13 08:25:24 2015 +0000
@@ -1,5 +1,5 @@
#include "mbed.h"
-#include "SRF08.h"
+
SRF08 srf08(p9, p10, 0xE0); // Define SDA, SCL pin and I2C address
@@ -7,6 +7,7 @@
while (1) {
printf("Measured range : %.2f cm\n",srf08.read());
+
wait(0.1);
}
