new

Dependencies:   mbed

Revision:
0:e4c4836c31fc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jul 03 13:32:31 2015 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+ Serial pc(USBTX, USBRX); // tx, rx
+ 
+int main() {
+    while(1) 
+    {
+        if(pc.readable()) {
+            device.putc(pc.getc());
+    
+    }
+}