Use Uart

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by eunkyoung kim

Revision:
3:1f30ebd64626
Parent:
2:ab03b0b5012c
Child:
4:3974a6c7b088
--- a/main.cpp	Mon Jun 29 03:36:15 2015 +0000
+++ b/main.cpp	Fri Jul 24 00:30:17 2015 +0000
@@ -8,8 +8,8 @@
 Serial pc(USBTX, USBRX); // tx, rx
  
 int main() {
-    pc.printf("Hello World!\n");
+    pc.printf("Hello World!\n");    // string output
     while(1) {
-        pc.putc(pc.getc() + 1);
+        pc.putc(pc.getc() + 1);     // typing characters
     }
 }
\ No newline at end of file