a sadeghioon / Mbed 2 deprecated reciever

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
axm904
Date:
Wed Sep 21 14:34:24 2011 +0000
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Sep 21 14:34:24 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912