HEPTA-Sat Training 2017~2018
/
Lab5-01_Count_up_XBee
Hepta communication
Fork of Lab7-01_template by
main.cpp
- Committer:
- HEPTA
- Date:
- 2019-08-24
- Revision:
- 16:113f2ec66ba0
- Parent:
- 13:cec8b2da655e
File content as of revision 16:113f2ec66ba0:
#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); } }