#include < fix_fft.h >
#include < arduinoFFT.h >
#include < LiquidCrystal.h >
#include < fft.h >
// Define the VFD display pins
LiquidCrystal lcd(16, 15, 5, 4, 3, 2, 1);
// Define the piezo-electric sensor pin
const int piezoInputPin = A0;
const int audioInputPin = A1; // Assuming audio jack is connected to A1
// Define the sample rate and FFT settings
const int sampleRate = 10000; // Adjust this based on your audio source
const int fftSize = 64; // FFT size (must be a power of 2)
const int fftBins = fftSize / 2;
int piezoData[fftSize] = { 0};
int audioData[fftSize] = { 0};
// Create an FFT object
FFT fft;