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:0d359c595390, committed 2013-05-01
- Comitter:
- MPybus
- Date:
- Wed May 01 14:57:16 2013 +0000
- Commit message:
- Attempt at wired;
Changed in this revision
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 0d359c595390 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed May 01 14:57:16 2013 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX); // tx, rx +DigitalOut led1(PTB8); +Serial other(PTD2, PTD3); + +int main() { +char c; +char d; + pc.printf("Hello World\n"); + while(1){ + c=pc.getc(); + d=PTD3; + other.printf("%c",c); + pc.printf("%c",d); + + led1=(~c); + + wait(0.1); + } +} \ No newline at end of file
diff -r 000000000000 -r 0d359c595390 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed May 01 14:57:16 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7e6c9f46b3bd \ No newline at end of file