
Demo for Serial Comms
Dependencies: mbed
Fork of frdm_serial by
Revision 4:d6816f97e349, committed 2014-02-20
- Comitter:
- Kojto
- Date:
- Thu Feb 20 18:03:43 2014 +0000
- Parent:
- 3:eea88312499a
- Child:
- 5:4a8adccde733
- Commit message:
- frdm serial example - initial version
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 |
--- a/main.cpp Tue Feb 19 23:48:41 2013 +0000 +++ b/main.cpp Thu Feb 20 18:03:43 2014 +0000 @@ -1,15 +1,15 @@ #include "mbed.h" DigitalOut myled(LED_GREEN); -Serial pc(USBTX,USBRX); +Serial pc(USBTX, USBRX); int main() { - int i=0; + int i = 0; pc.printf("\nHello World!\n"); while (true) { wait(0.5); - pc.printf("%d\n",i); + pc.printf("%d \n", i); i++; myled = !myled; }
--- a/mbed.bld Tue Feb 19 23:48:41 2013 +0000 +++ b/mbed.bld Thu Feb 20 18:03:43 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/3d0ef94e36ec \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/ed8466a608b4 \ No newline at end of file