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:1c46d2e5cca5, committed 2018-06-15
- Comitter:
- SolManB
- Date:
- Fri Jun 15 04:00:46 2018 +0000
- Commit message:
- Nodo receptor;
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 Jun 15 04:00:46 2018 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +Serial xbee(p9,p10); +Serial pc(USBTX,USBRX); + + +int main() +{ + xbee.baud(115200); + pc.baud(230400); + while(1) + { + //if(pc.readable()==0){ + while(xbee.getc()!=0xFF){} + while(xbee.getc()!=0xFE){} + while(xbee.getc()!=0xC1){} + pc.printf("%02x",xbee.getc());1 + pc.printf("%02x",xbee.getc());2 + pc.printf("%02x",xbee.getc());3 + pc.printf("%02x",xbee.getc());4 + pc.printf("%02x",xbee.getc());5 + pc.printf("%02x",xbee.getc());6 + pc.printf("%02x",xbee.getc());7 + pc.printf("%02x",xbee.getc());8 + pc.printf("\n\r"); + xbee.getc(); + xbee.getc(); + xbee.getc(); + }//} +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Jun 15 04:00:46 2018 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/794e51388b66 \ No newline at end of file