CRISTIAN YOMAYUZA / Mbed 2 deprecated Comunicaciondoble

Dependencies:   SoftSerial mbed

Files at this revision

API Documentation at this revision

Comitter:
cristiany
Date:
Thu Sep 28 00:34:10 2017 +0000
Commit message:
Comunicacion doble;

Changed in this revision

SoftSerial.lib Show annotated file Show diff for this revision Revisions of this file
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 6f4089757c91 SoftSerial.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SoftSerial.lib	Thu Sep 28 00:34:10 2017 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/Sissors/code/SoftSerial/#a0029614de72
diff -r 000000000000 -r 6f4089757c91 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Sep 28 00:34:10 2017 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h" 
+#include "SoftSerial.h"
+
+SoftSerial MB(D2,D3);
+Serial PC(USBTX,USBRX);
+char rec; 
+char send;
+int main()
+{
+            
+    while(1) 
+    {
+         if(PC.readable()>0)
+         {
+        
+            send=PC.getc();
+            MB.printf("%c",send);
+            PC.printf("%c",send) ;
+            wait(0.2);
+        }
+        if(MB.readable()> 0)
+        {
+           rec=MB.getc();
+           PC.printf("%c",rec);
+           wait(0.2);
+    }
+        
+    }
+}
diff -r 000000000000 -r 6f4089757c91 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Sep 28 00:34:10 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/675da3299148
\ No newline at end of file