Comunication mbed_pc

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
nunesdiego383
Date:
Mon Jul 28 16:23:08 2014 +0000
Parent:
0:cafb6c58ebf7
Commit message:
comunication mbed_pc

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r cafb6c58ebf7 -r 6e98e62c69d4 main.cpp
--- a/main.cpp	Mon Jul 28 15:50:53 2014 +0000
+++ b/main.cpp	Mon Jul 28 16:23:08 2014 +0000
@@ -1,10 +1,7 @@
 #include "mbed.h"              
  
-Serial pc(USBTX, USBRX);
+Serial pc(USBTX, USBRX); // tx, rx
  
 int main() {
-    pc.printf("Echoes back to the screen anything you type\n");
-    while(1) {
-        pc.putc(pc.getc());
-    }
+    pc.printf("Hello World!\n");
 }
\ No newline at end of file