From c0ffac4db24862827b1e145c6bea246f98e53989 Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Mon, 25 Sep 2023 10:09:13 +0200 Subject: [PATCH] sd_begin.ino setup SPI pins --- examples/sd_begin/sd_begin.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/sd_begin/sd_begin.ino b/examples/sd_begin/sd_begin.ino index c388295..06ec979 100644 --- a/examples/sd_begin/sd_begin.ino +++ b/examples/sd_begin/sd_begin.ino @@ -17,6 +17,11 @@ AudioKit kit; void setup(){ Serial.begin(115200); + + // setup SPI with the coorrect pins + SPI.begin(PIN_AUDIO_KIT_SD_CARD_CLK, PIN_AUDIO_KIT_SD_CARD_MISO, PIN_AUDIO_KIT_SD_CARD_MOSI, PIN_AUDIO_KIT_SD_CARD_CS); + + // start SD if(!SD.begin(PIN_AUDIO_KIT_SD_CARD_CS, AUDIOKIT_SD_SPI)){ Serial.println("Card Mount Failed"); return;