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:
- 1:2611f01f2e9b
- Parent:
- 0:f728b8e6bdf2
- Child:
- 2:c799e2dde99f
diff -r f728b8e6bdf2 -r 2611f01f2e9b main.cpp --- 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) {//焦電反応ありの場合