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: us015.cpp
- Revision:
- 1:ac45a449d413
- Parent:
- 0:fec7088c8dcb
- Child:
- 2:d377daf497e2
diff -r fec7088c8dcb -r ac45a449d413 us015.cpp --- a/us015.cpp Sat Sep 09 00:47:13 2017 +0000 +++ b/us015.cpp Sat Oct 14 09:24:12 2017 +0000 @@ -1,7 +1,7 @@ //************************************************** // // us015.cpp -// 概要:測距センサUS-015 +// 概要:超音波距離センサ US-015 // //************************************************** #include "mbed.h" @@ -18,7 +18,7 @@ // タイマーの開始 timer.start(); // トリガー信号の定期出力を行う - tk.attach_us(this,&US015::TrigerOut,US015_PERIODIC_TRIGER); + //tk.attach_us(this,&US015::TrigerOut,US015_PERIODIC_TRIGER); // エコーバック信号の立ち上がり・立ち下がり処置の割り込み _interruptEcho.fall(this,&US015::EchoFall); _interruptEcho.rise(this,&US015::EchoRise); @@ -73,3 +73,4 @@ tmBegin=timer.read_us(); } // End of EchoRise +