I have Arduino Uno and Mega. TMRpcm works perfect but I can't run audio files with Simple SD Audio.
#include <SimpleSDAudio.h>
void setup()
{
SdPlay.setSDCSPin(4);
if (!SdPlay.init(SSDA_MODE_HALFRATE | SSDA_MODE_MONO | SSDA_MODE_AUTOWORKER))
{
while(1);
}
if(!SdPlay.setFile("91.wav"))
{
while(1); //dosya bulunamazsa durdur
}
}
void loop(void) {
SdPlay.play();
while(!SdPlay.isStopped()) {
;
}
}
All pins are correct. (Speaker 9 for Uno, 11 MOSI, 12 MISO, 13 SCK and 4 for SD_CS)
My file has this specs;
8 bit, 16000 Hz, Mono (Unsigned PCM) What are HALFRATE and FULLRATE? I want to use TMRpcm but this library don't work with bluetooth. (On my main code) Please help, i have 2 days. Why I can't run Simple SD Audio?