a sadeghioon / Mbed 2 deprecated reciever

Dependencies:   mbed

Revision:
0:f04f6d613205
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Sep 21 14:34:24 2011 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+Serial pc(USBTX, USBRX);
+Serial erad(p9, p10);
+char tex;
+int stat=0;
+int main() {
+erad.baud(19200);
+    while(1) {
+    stat=erad.readable();
+    if(stat>0){  
+              erad.scanf("%s",&tex);
+              pc.printf("%s",tex);            
+        }
+        }
+}
\ No newline at end of file