Bチーム / Mbed 2 deprecated mbed_blinky

Dependencies:   Ping mbed

Files at this revision

API Documentation at this revision

Comitter:
ryuna
Date:
Tue Jun 10 09:12:52 2014 +0000
Commit message:
test

Changed in this revision

Ping.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 135359aef760 Ping.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Ping.lib	Tue Jun 10 09:12:52 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/rosienej/code/Ping/#6996f66161d7
diff -r 000000000000 -r 135359aef760 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jun 10 09:12:52 2014 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "Ping.h"
+
+Serial pc(USBTX,USBRX);
+DigitalOut myled(LED1);
+Ping PING(p21);
+
+
+int main() {
+    int ping_data = 0;
+    
+    while(1) {
+    
+    PING.Send();
+    wait_ms(30);
+    
+    ping_data = PING.Read_cm()/2;
+    
+    pc.printf("ping: %d\n",ping_data);
+    
+    }
+}
diff -r 000000000000 -r 135359aef760 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jun 10 09:12:52 2014 +0000
@@ -0,0 +1,1 @@
+http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43
\ No newline at end of file