cansat_B 2019 / Mbed 2 deprecated tougou-no3

Dependencies:   mbed

Revision:
1:2611f01f2e9b
Parent:
0:f728b8e6bdf2
Child:
2:c799e2dde99f
--- a/main.cpp	Fri Nov 15 14:02:01 2019 +0000
+++ b/main.cpp	Sat Nov 16 09:05:41 2019 +0000
@@ -15,7 +15,7 @@
   bool detected=false;
     thermo=0; //焦電off
     Ultra=1;//超音波on
-   
+    printf("超音波on焦電off  ;
     while(1) {
          hs.TrigerOut();
          wait(1);
@@ -26,6 +26,7 @@
         if(distance<2000){//超音波反応
          Ultra=0;//超音波off
          thermo=1;//焦電on
+          printf("音波off焦電on  ");
           if(true)
              th = thermo;
              if(th=1 && !detected) {//焦電反応ありの場合