Skip to content

Commit 3a4dee0

Browse files
committed
Fixed SD card initialization error caused the LCD SPI rate to decrease
1 parent 178a4c8 commit 3a4dee0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/M5Stack.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ void M5Stack::begin(bool LCDEnable, bool SDEnable, bool SerialEnable, bool I2CEn
2222
Serial.print("M5Stack initializing...");
2323
}
2424

25-
// LCD INIT
26-
if (LCDEnable == true) {
27-
Lcd.begin();
28-
}
29-
3025
// TF Card
3126
if (SDEnable == true) {
3227
SD.begin(TFCARD_CS_PIN, SPI, 40000000);
3328
}
3429

30+
// LCD INIT
31+
if (LCDEnable == true) {
32+
Lcd.begin();
33+
}
34+
3535
// TONE
3636
// Speaker.begin();
3737

0 commit comments

Comments
 (0)