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.
Revision 0:75937df46708, committed 2015-11-23
- Comitter:
- oscarvzfz
- Date:
- Mon Nov 23 23:06:34 2015 +0000
- Commit message:
- bosdjbvdv;
Changed in this revision
diff -r 000000000000 -r 75937df46708 HCSR04.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HCSR04.lib Mon Nov 23 23:06:34 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/rabad1/code/HCSR04/#5461d44a187c
diff -r 000000000000 -r 75937df46708 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Nov 23 23:06:34 2015 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "HCSR04.h"
+
+Serial pc(USBTX,USBRX);
+HCSR04 rangeFinder(p14,p13);
+float range;
+
+int main() {
+pc.baud(9600);
+while(1) {
+ rangeFinder.startMeas();
+ wait(0.1);
+ rangeFinder.getMeas(range);
+ printf("range = %f\n\r", range);
+
+
+}
+}
\ No newline at end of file
diff -r 000000000000 -r 75937df46708 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Nov 23 23:06:34 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae \ No newline at end of file