Kiyoshi Hayakawa
/
test-Xbee-serial-AT
Xbee API test program
Revision 1:0488555c7ef0, committed 2013-09-28
- Comitter:
- khayakawa
- Date:
- Sat Sep 28 15:43:38 2013 +0000
- Parent:
- 0:ba59a11f57b7
- Commit message:
- KEIS
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ba59a11f57b7 -r 0488555c7ef0 main.cpp --- a/main.cpp Sun Jun 02 01:43:33 2013 +0000 +++ b/main.cpp Sat Sep 28 15:43:38 2013 +0000 @@ -1,12 +1,8 @@ -/* PC=end divce, mbed=cordinator */ -/* type key on a PC connected with Xbee end device, */ -/* display key on LCD of cordinator */ - #include "mbed.h" #include "C12832_lcd.h" -Serial pc(USBTX, USBRX); // tx, rx -Serial device(p9, p10); // tx, rx +Serial pc(USBTX, USBRX); +Serial device(p9, p10); C12832_LCD lcd; DigitalOut myled(LED1); char* ch[16]={"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"}; @@ -21,7 +17,6 @@ tmp1 = val/16; tmp2 = val%16; pc.printf("%s%s",ch[tmp1],ch[tmp2]); - // wait(.2); myled=0; @@ -35,7 +30,6 @@ myled=0; device.attach(&dev_rx, Serial::RxIrq); - //device.attach(dev_rx, RxIrq); }