Xbee CountUp

Dependencies:   mbed

Fork of HeptaXbee_CountUp by 智也 大野

Committer:
tomoya123
Date:
Fri Dec 09 04:58:00 2016 +0000
Revision:
0:0a7fa0911e6c
Child:
1:715b80d2a02b
Xbee CountUP

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tomoya123 0:0a7fa0911e6c 1 #include "mbed.h"
tomoya123 0:0a7fa0911e6c 2 #include "HeptaXbee.h"
tomoya123 0:0a7fa0911e6c 3
tomoya123 0:0a7fa0911e6c 4 Serial pc(USBTX,USBRX);
tomoya123 0:0a7fa0911e6c 5 HeptaXbee xbee(p9, p10);//(tx,rx)=(Din,Dout)
tomoya123 0:0a7fa0911e6c 6
tomoya123 0:0a7fa0911e6c 7 int main() {
tomoya123 0:0a7fa0911e6c 8 pc.baud(9600);
tomoya123 0:0a7fa0911e6c 9 xbee.baud(9600);
tomoya123 0:0a7fa0911e6c 10 pc.printf("N:Xbee Count Up Mode\r\n");
tomoya123 0:0a7fa0911e6c 11 for(int i=1;i<10;i++){
tomoya123 0:0a7fa0911e6c 12 xbee.printf("num = %d\r\n",i);
tomoya123 0:0a7fa0911e6c 13 wait (1.0);
tomoya123 0:0a7fa0911e6c 14 }
tomoya123 0:0a7fa0911e6c 15 }