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

Commit

Permalink
sd_begin.ino setup SPI pins
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Sep 25, 2023
1 parent b8b9bb2 commit c0ffac4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/sd_begin/sd_begin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c0ffac4

Please sign in to comment.