![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
MyTicker7 のデモプログラム
Revision 1:2e8596e6b055, committed 2020-10-17
- Comitter:
- MikamiUitOpen
- Date:
- Sat Oct 17 00:42:08 2020 +0000
- Parent:
- 0:4f8d4743c16f
- Commit message:
- 2
Changed in this revision
MyTicker7.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MyTicker7.lib Mon Jun 01 04:06:44 2020 +0000 +++ b/MyTicker7.lib Sat Oct 17 00:42:08 2020 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/MikamiUitOpen/code/MyTicker7/#329029faa850 +https://os.mbed.com/users/MikamiUitOpen/code/MyTicker7/#f4269105fae0
--- a/main.cpp Mon Jun 01 04:06:44 2020 +0000 +++ b/main.cpp Sat Oct 17 00:42:08 2020 +0000 @@ -1,7 +1,7 @@ //----------------------------------------------------------- // MyTicker7 クラスの使用例 // -// 2020/06/01, Copyright (c) 2020 MIKAMI, Naoki +// 2020/10/17, Copyright (c) 2020 MIKAMI, Naoki //----------------------------------------------------------- #include "MyTicker7.hpp" @@ -16,7 +16,7 @@ { printf("\r\nMyTicker7 の使用例(割込みを使わない場合)\r\n"); MyTicker7 tim(0.5); // 出力間隔: 0.5 μs - // 出力間隔の上限: 182.04442 μs + // 出力間隔の上限: 182.04442 μs //MyTicker7 tim(182.04442); // 出力間隔: 182.04442 μs DigitalOut dOut(D2, 1); @@ -37,7 +37,7 @@ int main() { printf("\r\nMyTicker7 の使用例(割込みを使う場合)\r\n"); - MyTicker7 tim(1.5); // 出力間隔: 1.5 μs + MyTicker7 tim(0.5); // 出力間隔: 0.5 μs tim.Attach(&TimerIsr); while (true) {}