Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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