Hello,
I am trying to add a speaker in my project and play a MP3 audio. I transformed it into a WAV. At the bottom of void setup, where there are two question marks, what do I write? I've tried looking for different tutorials, and I don't know if it's the file number or title, etc.
#include <SD.h>
#define SD_ChipSelectPin 10
#include <TMRpcm.h>
#include <SPI.h>
int SD_ChipSelectPin;
TMRpcm tmrpcm;
void setup ()
{
tmrpcm.speakerPin=9;
pinMode(11,OUTPUT);
Serial.begin(9600);
if(!SD.begin(SD_ChipSelectPin)) {
Serial.println("SD fail");
return;
}
tmrpcm.setVolume(30);
tmrpcm.play("??");
}
void loop() {
}
Thank you