Hello,
Running on the Teensy 3.2 with 2 Audio shields configured thusly: https://www.sparkfun.com/news/2055
Is there a way to select which Audio Shields' SD slot you want to read/write to?
My SD card setup is currently straight out of the example now:
Thanks,
Running on the Teensy 3.2 with 2 Audio shields configured thusly: https://www.sparkfun.com/news/2055
Is there a way to select which Audio Shields' SD slot you want to read/write to?
My SD card setup is currently straight out of the example now:
Code:
// Use these with the Teensy Audio Shield
#define SDCARD_CS_PIN 10
#define SDCARD_MOSI_PIN 7
#define SDCARD_SCK_PIN 14
....
/**
@return void
@brief Set up the SD card where the audio files will be stored.
*/
void sdSetup() {
// Initialize the SD card
SPI.setMOSI(SDCARD_MOSI_PIN);
SPI.setSCK(SDCARD_SCK_PIN);
if (!(SD.begin(SDCARD_CS_PIN))) {
// stop here if no SD card, but print a message
while (1) {
Serial.println("Unable to access the SD card");
delay(500);
}
}
}
Thanks,