Realtime spectrogram for DISCO-F746NG. On-board MEMS microphone is used for input sound signal. リアルタイムスペクトログラム.入力:MEMSマイク

Dependencies:   F746_GUI F746_SAI_IO UIT_FFT_Real

Revision:
2:1f092ac020e1
Parent:
1:f570067f3841
Child:
3:6a2c8ff46f73
diff -r f570067f3841 -r 1f092ac020e1 main.cpp
--- a/main.cpp	Sun May 22 06:49:25 2016 +0000
+++ b/main.cpp	Sat Jul 23 13:34:54 2016 +0000
@@ -2,12 +2,11 @@
 //  Realtime spectrogram
 //      Input: MEMS microphone
 //
-//  2016/05/22, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/07/23, Copyright (c) 2016 MIKAMI, Naoki
 //------------------------------------------------
 
 #include "SAI_InOut.hpp"
-#include "ButtonGroup.hpp"
-#include "Label.hpp"
+#include "F746_GUI.hpp"
 #include "MethodCollection.hpp"
 
 #include "Matrix.hpp"
@@ -34,11 +33,10 @@
 
     SaiIO mySai(SaiIO::INPUT, N_FFT+1, FS,
                 INPUT_DEVICE_DIGITAL_MICROPHONE_2);
-//                INPUT_DEVICE_INPUT_LINE_1);
 
     LCD_DISCO_F746NG *lcd = GuiBase::GetLcdPtr();   // LCD 表示器のオブジェクト
     lcd->Clear(GuiBase::ENUM_BACK);
-    Label myLabel1(240, 2, "Real-time spectrogram 15:47", Label::CENTER, Font16);
+    Label myLabel1(240, 2, "Real-time spectrogram", Label::CENTER, Font16);
 
     // ButtonGroup の設定
     const uint16_t B_W = 50;
@@ -63,7 +61,6 @@
 
     // ループ内で使う変数の初期化
     int stop = 1;       // 0: run, 1: stop
-
     // データ読み込み開始
     mySai.RecordIn();