help :(

Dependencies:   FFT

Revision:
4:7974ef1b1e07
Parent:
3:3dbf078989b1
Child:
7:0d62545e6d73
--- a/main.cpp	Thu Dec 03 05:07:27 2020 +0000
+++ b/main.cpp	Thu Dec 03 18:13:17 2020 +0000
@@ -86,7 +86,7 @@
             
         freq = sample[a];
         
-        pc.printf("%d\n",freq);
+        pc.printf("%f\n",freq);
         
         // determine state based on the FFT output range
         if (freq < 10000) {
@@ -113,7 +113,7 @@
                     }
                 }
                 matrix.writeDisplay();
-                wait(1);
+                wait(.2);
                 break;
         
             case(2): // CASE HIGH
@@ -126,7 +126,7 @@
                     }
                 }
                 matrix.writeDisplay();
-                wait(1);
+                wait(.2);
         
             case(3): // CASE MEDIUM
                 matrix.clear();
@@ -138,7 +138,7 @@
                     }
                 }
                 matrix.writeDisplay();
-                wait(1);
+                wait(.2);
                 break;
         
             case(4): // CASE LOW
@@ -151,7 +151,7 @@
                     }
                 }
                 matrix.writeDisplay();
-                wait(1);
+                wait(.2);
                 break;
         
             case(5): // CASE OFF
@@ -164,7 +164,7 @@
                     }
                 }
                 matrix.writeDisplay();
-                wait(1);
+                wait(.2);
                 break;
         
             default:
@@ -199,7 +199,7 @@
            if(buffer_index == BUFFER_SIZE)
            {
                //fast fourier tranform function here
-               vRealFFT(buffer, 64);
+               vRealFFT(buffer, 4);
                display_fft(buffer);
                buffer_index = 0;
                memset(buffer,0,sizeof(buffer));