From 3a4dee0caa067aaa1b2fea88fc6566fc379cb656 Mon Sep 17 00:00:00 2001 From: sorz Date: Thu, 13 Aug 2020 13:56:36 +0800 Subject: [PATCH] Fixed SD card initialization error caused the LCD SPI rate to decrease --- src/M5Stack.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/M5Stack.cpp b/src/M5Stack.cpp index a981c26..94729c5 100644 --- a/src/M5Stack.cpp +++ b/src/M5Stack.cpp @@ -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();