智也 大野
/
HeptaXbee_CountUp
Xbee countUP
Fork of HeptaXbee_CountUp by
Diff: main.cpp
- Revision:
- 0:0a7fa0911e6c
- Child:
- 1:715b80d2a02b
diff -r 000000000000 -r 0a7fa0911e6c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Dec 09 04:58:00 2016 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +#include "HeptaXbee.h" + +Serial pc(USBTX,USBRX); +HeptaXbee xbee(p9, p10);//(tx,rx)=(Din,Dout) + +int main() { + pc.baud(9600); + xbee.baud(9600); + pc.printf("N:Xbee Count Up Mode\r\n"); + for(int i=1;i<10;i++){ + xbee.printf("num = %d\r\n",i); + wait (1.0); + } +} \ No newline at end of file