Tandin Wangchuk / Mbed 2 deprecated Lab1-03_Serial_communication_signal

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
HEPTA
Date:
Wed Jun 06 12:32:42 2018 +0000
Commit message:
aaa;

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 e0256162ec80 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jun 06 12:32:42 2018 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+Serial pc(USBTX,USBRX);
+Serial sig(p13,p14);
+
+int main() {
+    char c;
+    while(1) {
+        c = pc.getc();
+        pc.putc(c);
+        sig.putc(c);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r e0256162ec80 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jun 06 12:32:42 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee
\ No newline at end of file