Trying to Link a Spark fun Audio Shield to a ESP 32

Board works using the demonstration /setup code on a Ardino Uno and the wave file / plotter. I have tried connecting to the ESP32 using Ardino IDE software and the same code with strobe, reset and A0. A1 connections. Does anybody have any experience of suggestion. Relatively new to coding and microcontrollers

Share a photo of the wiring and the modified code :smiley:

/******************************************************************************

SparkFun Spectrum Shield Demo

Wes Furuya @ SparkFun Electronics

January 2020

https://github.com/sparkfun/Spectrum_Shield

This sketch shows the basic functionality of the Spectrum Shield, using the Serial Monitor/Plotter.

The Spectrum Shield code is based off of the original demo sketch by Toni Klopfenstein @SparkFun Electronics.

This sketch is available in the Spectrum Shield repository.

Development environment specifics:

Developed in Arduino 1.8.5

*********************************************************************************/

//Declare Spectrum Shield pin connections

#define STROBE 34

#define RESET 35

#define DC_One 25

#define DC_Two 26

//Define spectrum variables

int freq_amp;

int Frequencies_One[7];

int Frequencies_Two[7];

int i;

/Setup Loop*****/

void setup() {

//Set spectrum Shield pin configurations

pinMode(STROBE, OUTPUT);

pinMode(RESET, OUTPUT);

pinMode(DC_One, INPUT);

pinMode(DC_Two, INPUT);

//Initialize Spectrum Analyzers

digitalWrite(STROBE, LOW);

digitalWrite(RESET, LOW);

delay(5);

Serial.begin(9600);

}

/Main Function Loop***/

void loop() {

Read_Frequencies();

Graph_Frequencies();

}

/Pull frquencies from Spectrum Shield*/

void Read_Frequencies() {

digitalWrite(RESET, HIGH);

delayMicroseconds(200);

digitalWrite(RESET, LOW);

delayMicroseconds(200);

//Read frequencies for each band

for (freq_amp = 0; freq_amp < 7; freq_amp++)

{

digitalWrite(STROBE, HIGH);

delayMicroseconds(50);

digitalWrite(STROBE, LOW);

delayMicroseconds(50);

//delayMicroseconds(10000);

Frequencies_One[freq_amp] = analogRead(DC_One);

Frequencies_Two[freq_amp] = analogRead(DC_Two);

}

}

/Print Out Band Values for Serial Plotter/

void Graph_Frequencies() {

for (i = 0; i < 7; i++)

{

// Serial.print(Frequencies_One*);*
// Serial.print(" ");
// Serial.print(Frequencies_Two);
// Serial.print(" ");
Serial.print( (Frequencies_One + Frequencies_Two) / 2 );
Serial.print(" ");
}
Serial.println();
}

Note USB lead and audio input not shown to aid clarity