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: BSP_DISCO_F746NG BUTTON_GROUP LCD_DISCO_F746NG TS_DISCO_F746NG UIT_FFT_Real mbed
Diff: MyClasses_Functions/SpectrumDisplay.hpp
- Revision:
- 1:ac0a67a0deec
- Parent:
- 0:0e5131366580
--- a/MyClasses_Functions/SpectrumDisplay.hpp Wed Jan 06 12:46:15 2016 +0000
+++ b/MyClasses_Functions/SpectrumDisplay.hpp Thu Jan 07 00:26:31 2016 +0000
@@ -1,7 +1,7 @@
//-------------------------------------------------------
// Class for display spectrum (Header)
//
-// 2015/12/15, Copyright (c) 2015 MIKAMI, Naoki
+// 2016/01/07, Copyright (c) 2015 MIKAMI, Naoki
//-------------------------------------------------------
#ifndef SPECTRUM_DISPLAY_HPP
@@ -15,7 +15,7 @@
{
public:
SpectrumDisplay(LCD_DISCO_F746NG &lcd,
- int nFft, int x0, int y0,
+ int nFft, int x0, int y0, float offset,
float db1, int bin, float maxDb, int fs,
uint32_t axisColor, uint32_t lineColor,
uint32_t backColor);
@@ -27,6 +27,7 @@
const int N_FFT_; // number of date for FFT
const int X0_; // Origin for x axis
const int Y0_; // Origin for y axis
+ const float OFFSET_; // Offset for display
const float DB1_; // Pixels for 1 dB
const int BIN_; // Pixels per bin
const float MAX_DB_; // Maximum dB