cansat
Fork of Xbee_Hello_world_A by
Revision 1:1054e130270c, committed 2015-08-18
- Comitter:
- Hagrass
- Date:
- Tue Aug 18 14:41:12 2015 +0000
- Parent:
- 0:9cbddcc86466
- Commit message:
- cnsat;
Changed in this revision
diff -r 9cbddcc86466 -r 1054e130270c CANSAT_COMBINED_F.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CANSAT_COMBINED_F.lib Tue Aug 18 14:41:12 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/Hagrass/code/CANSAT_COMBINED/#598af964f16c
diff -r 9cbddcc86466 -r 1054e130270c main.cpp --- a/main.cpp Fri Aug 31 14:46:32 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -#include "mbed.h" -#include "xbee.h" - -xbee xbee1(p9,p10,p11); //Initalise xbee_lib -Serial pc(USBTX, USBRX); //Initalise PC serial comms - -int main() -{ - char send_data[202]; //Xbee buffer size is 202 bytes - char read_data[202]; //Xbee buffer size is 202 bytes - - while(1) { - pc.scanf("%s",send_data); //Read data from serial console - xbee1.SendData(send_data); //Send data to XBee - xbee1.RecieveData(read_data,0); //Read data from the XBee - pc.printf("You said:%s",read_data); - } -}
diff -r 9cbddcc86466 -r 1054e130270c mbed.bld --- a/mbed.bld Fri Aug 31 14:46:32 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc \ No newline at end of file
diff -r 9cbddcc86466 -r 1054e130270c xbee_lib.lib --- a/xbee_lib.lib Fri Aug 31 14:46:32 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/tristanjph/code/xbee_lib/#ede20c047d8b