Omar Hagrass
/
mbed_blinky12
XBEE_CANSAT
Diff: main.cpp
- Revision:
- 0:aece59f1e125
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Aug 17 11:17:31 2015 +0000 @@ -0,0 +1,60 @@ +#include "mbed.h" + +//DigitalOut myled(LED1); +Serial xbee(p9,p10); +int z=240; +int main() { + xbee.baud(115200); + while(1) { + // wait(2); + xbee.printf("."); + + xbee.printf("p"); + wait(0.01); + xbee.printf("1"); + wait(0.01); + xbee.printf("2"); + wait(0.01); + xbee.printf("3"); + wait(0.01); + xbee.printf("4"); + wait(0.01); + xbee.printf("."); + + xbee.printf("t"); + wait(0.01); + xbee.printf("1"); + wait(0.01); + xbee.printf("2"); + wait(0.01); + xbee.printf("3"); + wait(0.01); + xbee.printf("4"); + wait(0.01); + xbee.printf("."); + wait(0.01); + xbee.printf("h"); + wait(0.01); + xbee.printf("1"); + wait(0.01); + xbee.printf("2"); + wait(0.01); + xbee.printf("3"); + wait(0.01); + xbee.printf("4"); + wait(0.01); + xbee.printf("."); + wait(0.01); + xbee.printf("e"); + wait(0.01); + xbee.printf("1"); + wait(0.01); + xbee.printf("2"); + wait(0.01); + xbee.printf("3"); + wait(0.01); + xbee.printf("4"); + wait(0.01); + } + +}