Matthew Pybus / Mbed 2 deprecated talktoother

Files at this revision

API Documentation at this revision

Comitter:
MPybus
Date:
Wed May 01 14:57:16 2013 +0000
Commit message:
Attempt at wired;

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
diff -r 000000000000 -r 0d359c595390 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed May 01 14:57:16 2013 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"              
+ 
+Serial pc(USBTX, USBRX); // tx, rx
+DigitalOut led1(PTB8);
+Serial other(PTD2, PTD3);
+ 
+int main() {
+char c;
+char d;
+    pc.printf("Hello World\n");
+    while(1){
+    c=pc.getc();
+    d=PTD3;
+    other.printf("%c",c);
+    pc.printf("%c",d);
+    
+    led1=(~c);
+    
+    wait(0.1);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 0d359c595390 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed May 01 14:57:16 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e6c9f46b3bd
\ No newline at end of file