Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Commit c0ffac4

Browse files
committed
sd_begin.ino setup SPI pins
1 parent b8b9bb2 commit c0ffac4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/sd_begin/sd_begin.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ AudioKit kit;
1717

1818
void setup(){
1919
Serial.begin(115200);
20+
21+
// setup SPI with the coorrect pins
22+
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);
23+
24+
// start SD
2025
if(!SD.begin(PIN_AUDIO_KIT_SD_CARD_CS, AUDIOKIT_SD_SPI)){
2126
Serial.println("Card Mount Failed");
2227
return;

0 commit comments

Comments
 (0)