![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ファンクション・ジェネレータ
Dependencies: mbed SerialTxRxIntr MyTicker7 Array_Matrix
Diff: main.cpp
- Revision:
- 1:ea5aa7f3d68c
- Parent:
- 0:17c762b41fc7
--- a/main.cpp Sat Oct 17 10:05:58 2020 +0000 +++ b/main.cpp Wed Dec 23 01:07:09 2020 +0000 @@ -19,7 +19,7 @@ // 注意 // PC から送信されるコマンド等が不正かどうかはチェックしていない // -// 2020/10/17, Copyright (c) 2020 MIKAMI, Naoki +// 2020/12/23, Copyright (c) 2020 MIKAMI, Naoki //---------------------------------------------------------------------- #include "F446_DAC.hpp" @@ -65,7 +65,7 @@ float Rect(float sinx) { float x = (sinx >= 0) ? volume_ : -volume_; - return x + volNoize_*fpN(); + return x + fpN(); } // 矩形波(5倍波まで) float Compo(float sinx)