Skip to content

Commit 1ad5aac

Browse files
committed
sd working
1 parent 41df1cf commit 1ad5aac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ setup()
6666
// digitalWrite(PIN_AUDIO_KIT_SD_CARD_CLK, 1);
6767

6868
print_logo();
69-
sd.begin();
7069
display.begin();
7170
display.showEmotion("smiley");
7271

@@ -90,6 +89,7 @@ setup()
9089

9190
server.begin();
9291
ipAddress = wiFiManager.getIPAddress().toString();
92+
sd.begin();
9393
}
9494
}
9595

src/sd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SDCard
1111
SDCard(int sdCSPin, int sdMISOPin, int sdMOSIPin, int sdCLKPin)
1212
{
1313
sd_CS = sdCSPin;
14-
sd_MISO = sdCSPin;
14+
sd_MISO = sdMISOPin;
1515
sd_MOSI = sdMOSIPin;
1616
sd_CLK = sdCLKPin;
1717
} // Constructor to initialize the SD Card

0 commit comments

Comments
 (0)