Xbee CountUp

Dependencies:   mbed

Fork of HeptaXbee_CountUp by 智也 大野

main.cpp

Committer:
tomoya123
Date:
2016-12-13
Revision:
1:715b80d2a02b
Parent:
0:0a7fa0911e6c

File content as of revision 1:715b80d2a02b:

#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("Xbee Count Up  Mode\r\n");
        for(int i=1;i<10;i++){
           xbee.printf("num = %d\r\n",i);
           wait (1.0);
        }
}