Revision 0:e5de0a10affa, committed 2011-08-19
- Comitter:
- Nathan
- Date:
- Fri Aug 19 15:06:34 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 Fri Aug 19 15:06:34 2011 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+
+//Very simple program to pass whatever the mbed reads on pins 9 and 10 to the computer
+//Baud by default is 9600, you can change this easily.
+
+Serial pc(USBTX, USBRX);
+Serial WIFI(p9,p10);
+
+
+int main() {
+
+ pc.printf("\x1B[2J");
+ pc.printf("\x1B[H");
+ pc.printf("Simple Termial!\r\n");
+
+ while (1) {
+
+
+ while(pc.readable())WIFI.putc(pc.getc());
+ while(WIFI.readable())pc.putc(WIFI.getc());
+
+ }}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Aug 19 15:06:34 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912