Skip to content

Commit 567596c

Browse files
committed
set actually SPI freq
1 parent 8c51a0e commit 567596c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/M5Stack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void M5Stack::begin() {
3131
Lcd.setBrightness(50);
3232

3333
// TF Card
34-
SD.begin(TFCARD_CS_PIN);
34+
SD.begin(TFCARD_CS_PIN, SPI, 27000000);
3535

3636
// Set wakeup button
3737
setWakeupButton(BUTTON_A_PIN);

src/utility/Display.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
// #define SPI_FREQUENCY 5000000
4646
// #define SPI_FREQUENCY 10000000
4747
// #define SPI_FREQUENCY 20000000
48-
// #define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3
49-
#define SPI_FREQUENCY 40000000 // Maximum to use SPIFFS
48+
#define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3
49+
// #define SPI_FREQUENCY 40000000 // Maximum to use SPIFFS
5050
// #define SPI_FREQUENCY 80000000
5151

5252
// Comment out the following #define if "SPI Transactions" do not need to be

0 commit comments

Comments
 (0)