this program will do FFT on an audio signal

Dependencies:   mbed Grove_LCD_RGB_Backlight UIT_FFT_Real

Files at this revision

API Documentation at this revision

Comitter:
SBACCARI
Date:
Mon Apr 15 10:08:19 2019 +0000
Parent:
0:c7f159ed0bc3
Commit message:
add 1024 ADC comment

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c7f159ed0bc3 -r a806f3aacf1f main.cpp
--- a/main.cpp	Mon Apr 15 09:45:45 2019 +0000
+++ b/main.cpp	Mon Apr 15 10:08:19 2019 +0000
@@ -14,7 +14,7 @@
 
 void sampling_interrup()
 {
-    samples[i] = 1024*micro.read();
+    samples[i] = 1024*micro.read(); // 1024 : ADC of the sound sensor
     i++;
     if (i >= FFT_len*2) {
         sampler.detach();