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
Diff: main.cpp
- Revision:
- 15:1deffcfa5b1a
- Parent:
- 14:228a35fcb323
- Child:
- 16:429f6ad98e90
diff -r 228a35fcb323 -r 1deffcfa5b1a main.cpp
--- a/main.cpp Sat Dec 14 13:23:31 2019 +0000
+++ b/main.cpp Sat Dec 14 13:27:51 2019 +0000
@@ -41,26 +41,30 @@
Ultra=0;//超音波off
SW=1;
flight==1;//flight pin ついてる
- FET=1;//FET off
- printf("you worry about me don't you?\r\n");
+ FET=0;//FET off
+ myled=1;
+ printf("CanSat-B_Start!\r\n");
//FET
while(1){
if(flight==1) {
+ myled=1;
wait(10);
printf("mada\r\n");
}
else{
if(flight==1) {
+ myled=1;
wait(10);
printf("madamada\r\n");
}
else{
+ myled=0;
printf("yattar\r\n");
+ FET=1;
+ wait(10);
FET=0;
wait(10);
- FET=1;
- wait(10);
printf("FET End!\r\n");
SW=0;