I am trying to use a 2Gb micro-SD card to play wav files.
The SD card is formatted with FAT32 and a wav file is also loaded on it.
With the code below I try to open the SD card but it always goes into "initialization failed!".
I have tried several SD cards and different Teensys, but it has never worked until now.
On the Teensy itself, near all pins are occupied, can this be a problem?
Thanks for your help
~Jonas
The SD card is formatted with FAT32 and a wav file is also loaded on it.
With the code below I try to open the SD card but it always goes into "initialization failed!".
Code:
if (!SD.begin(BUILTIN_SDCARD)) {
Serial.println("initialization failed!");
while (1);
}
Serial.println("initialization done.");
I have tried several SD cards and different Teensys, but it has never worked until now.
On the Teensy itself, near all pins are occupied, can this be a problem?
Thanks for your help
~Jonas