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: F746_GUI Array_Matrix TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG SDFileSystem_Warning_Fixed FrequencyResponseDrawer F746_SAI_IO
Diff: MyClasses_Functions/FrquencyResponseDrawer.cpp
- Revision:
- 5:3e8ca1ed31a1
- Parent:
- 3:cda40218256c
--- a/MyClasses_Functions/FrquencyResponseDrawer.cpp Mon Apr 25 13:01:25 2016 +0000
+++ b/MyClasses_Functions/FrquencyResponseDrawer.cpp Sun May 01 02:45:17 2016 +0000
@@ -2,7 +2,7 @@
// 周波数が対数スケールの周波数特性を描画するクラス
// FrqRespDrawer class
//
-// 2016/04/25, Copyright (c) 2016 MIKAMI, Naoki
+// 2016/05/01, Copyright (c) 2016 MIKAMI, Naoki
//-----------------------------------------------------------
#include "FrquencyResponseDrawer.hpp"
@@ -36,9 +36,9 @@
lcd_->DrawVLine(X(MAX_), y0, height); // 最大値に対応する線
uint16_t width = X(MAX_) - X(MIN_);
- int count =Round((MAX_DB_ - MIN_DB_)/(Y_SPACE_/DB1_));
+ int count = Round((MAX_DB_ - MIN_DB_)/(Y_SPACE_/DB1_));
for (int n=0; n<= count; n++)
- lcd_->DrawHLine(X(MIN_), ORGY_-Y_SPACE_*n, width);
+ lcd_->DrawHLine(X(MIN_), Round(ORGY_-Y_SPACE_*n), width);
}
// 横軸の目盛値の表示
@@ -90,7 +90,7 @@
y1 = y2;
}
lcd_->SetTextColor(AXIS_COLOR_);
- lcd_->DrawHLine(X(MIN_), ORGY_, width);
+ lcd_->DrawHLine(X(MIN_), ORGY_, width+1);
}
// 消去
@@ -101,3 +101,5 @@
lcd_->FillRect(ORGX_, ORGY_- height, X(MAX_)-X(MIN_)+1, height+1);
}
}
+
+