Fixed SD card initialization error caused the LCD SPI rate to decrease

This commit is contained in:
sorz
2020-08-13 13:56:36 +08:00
parent 178a4c8ea1
commit 3a4dee0caa
+5 -5
View File
@@ -22,16 +22,16 @@ void M5Stack::begin(bool LCDEnable, bool SDEnable, bool SerialEnable, bool I2CEn
Serial.print("M5Stack initializing...");
}
// LCD INIT
if (LCDEnable == true) {
Lcd.begin();
}
// TF Card
if (SDEnable == true) {
SD.begin(TFCARD_CS_PIN, SPI, 40000000);
}
// LCD INIT
if (LCDEnable == true) {
Lcd.begin();
}
// TONE
// Speaker.begin();