Day 3 Starts. A program where input would be incremented by one and obtained on the PC screen. (UART)

Dependencies:   mbed

Revision:
0:becfe6860a16
diff -r 000000000000 -r becfe6860a16 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jul 01 01:47:54 2016 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+Serial pc(USBTX,USBRX);
+
+int main() {
+    
+    while(1) {
+        if(pc.readable())
+        {
+        pc.putc(pc.getc()+1);    
+        }
+    }
+}