Hepta communication

Dependencies:   mbed HeptaXbee

Fork of Lab7-01_template by HEPTA-Sat Training 2017~2018

main.cpp

Committer:
HEPTA
Date:
2017-09-08
Revision:
13:cec8b2da655e
Parent:
10:4d6870d0caa0

File content as of revision 13:cec8b2da655e:

#include "mbed.h"
#include "HeptaXbee.h"

Serial pc(USBTX,USBRX);
HeptaXbee xbee(p9,p10);

int main()
{
    pc.baud(9600);
    xbee.baud(9600);
    pc.printf("Xbee Count Up Mode\r\n");
    for(int i = 0; i < 10; i++) {
        xbee.printf("num = %d\r\n",i);
        wait(1.0);
    }
}