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.
Dependencies: mbed
Revision 21:548ac557ee95, committed 2019-12-14
- Comitter:
- seijakunouenimutou
- Date:
- Sat Dec 14 19:10:57 2019 +0000
- Parent:
- 20:a30164d29218
- Commit message:
- cansat
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Dec 14 18:30:26 2019 +0000 +++ b/main.cpp Sat Dec 14 19:10:57 2019 +0000 @@ -43,7 +43,7 @@ flight==1;//flight pin ついてる FET=0;//FET off myled=1; - printf("you worry about me don't you?\r\n"); + xbee.printf("you worry about me don't you?\r\n"); //FET while(1){ @@ -56,17 +56,17 @@ if(flight==1) { myled=1; wait(10); - printf("madamada\r\n"); + xbee.printf("madamada\r\n"); } else{ myled=0; - printf("yattar\r\n"); + xbee.printf("yattar\r\n"); wait(20); FET=1; wait(10); FET=0; wait(10); - printf("FET End!\r\n"); + xbee.printf("FET End!\r\n"); SW=0; break; @@ -205,7 +205,7 @@ if(th==1 && !detected) {//焦電反応ありの場合 i++; detected=true; - pc.printf("human\r\n"); + xbee.printf("human\r\n"); tm.reset(); tm.start(); @@ -239,7 +239,7 @@ - xbee.printf("xbee connected!\r\n"); + xbee.printf("i could take apicture!\r\n"); bs = new base64(); bs->Encode("/local/pict000.jpg","/local/data000.txt");