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:135359aef760, committed 2014-06-10
- Comitter:
- ryuna
- Date:
- Tue Jun 10 09:12:52 2014 +0000
- Commit message:
- test
Changed in this revision
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