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.
Revision 0:6f4089757c91, committed 2017-09-28
- Comitter:
- cristiany
- Date:
- Thu Sep 28 00:34:10 2017 +0000
- Commit message:
- Comunicacion doble;
Changed in this revision
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