Kiyoshi Hayakawa
/
test_Xbee_PC_mbed_API
KEIS
Revision 0:15183cd2c928, committed 2013-10-01
- Comitter:
- khayakawa
- Date:
- Tue Oct 01 00:10:26 2013 +0000
- Commit message:
- KEIS
Changed in this revision
diff -r 000000000000 -r 15183cd2c928 C12832_lcd.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832_lcd.lib Tue Oct 01 00:10:26 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/dreschpe/code/C12832_lcd/#468cdccff7af
diff -r 000000000000 -r 15183cd2c928 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Oct 01 00:10:26 2013 +0000 @@ -0,0 +1,35 @@ + +#include "mbed.h" +#include "C12832_lcd.h" + +Serial pc(USBTX, USBRX); // tx, rx +Serial device(p9, p10); // tx, rx +C12832_LCD lcd; + +char* ch[16]={"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"}; + +void dev_rx () { + char val; + int tmp1,tmp2; + + val=device.getc(); + //lcd.printf("%x ",val); + tmp1 = val/16; + tmp2 = val%16; + pc.printf("%s%s",ch[tmp1],ch[tmp2]); + //wait(.2); + + + +} + +int main() { + + lcd.cls(); + lcd.locate(0,0); + + device.attach(&dev_rx, Serial::RxIrq); + + + +}
diff -r 000000000000 -r 15183cd2c928 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Oct 01 00:10:26 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17 \ No newline at end of file