Skip to content

Commit

Permalink
feat : add support to esp32 s3 geek using sdcard fixes #405
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio MATARRANZ authored and julio-matarranz committed Jun 6, 2024
1 parent ee4324f commit 4331e0a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,11 @@ build_flags =
-DBOARD_HAS_PSRAM
-DARDUINO_USB_CDC_ON_BOOT
-DTFT_BACKLIGHT_ON=HIGH
-DSDSPI_CLK=36
-DSDSPI_MOSI=35
-DSDSPI_MISO=37
-DSDSPI_CS=34
-DSD_ID=HSPI
lib_deps =
https://github.com/takkaO/OpenFontRender
bblanchon/ArduinoJson@^6.21.2
Expand Down
6 changes: 5 additions & 1 deletion src/NerdMinerV2.ino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@

extern monitor_data mMonitor;

SDCard SDCrd = SDCard();
#ifdef SD_ID
SDCard SDCrd = SDCard(SD_ID);
#else
SDCard SDCrd = SDCard();
#endif

/**********************⚡ GLOBAL Vars *******************************/

Expand Down

0 comments on commit 4331e0a

Please sign in to comment.