Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 //cansat本体用のXbeeプログラミング(もし地上局でmbedを使用する場合) 00002 00003 #include "mbed.h" 00004 00005 Serial xbee(p13,p14); //pin13(tx),pin14(rx)で指定 00006 00007 char cmd = xbee.getc(); 00008 int va1 = xbee.readable(); 00009 00010 int main() {//1 00011 00012 xbee.baud(9600); 00013 00014 for(;;){//2 00015 if(va1 == 1){//3 00016 00017 xbee.printf("%x",cmd); 00018 00019 if(cmd == 'm'){//4 00020 xbee.printf("cmd m"); 00021 while(1){//5 00022 00023 00024 }//5 00025 }//4 00026 }//3 00027 va1 = 0; 00028 }//2 00029 }//1
Generated on Thu Aug 11 2022 15:24:19 by
1.7.2