diff --git a/platformio.ini b/platformio.ini index da66c21..c440ccb 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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 diff --git a/src/NerdMinerV2.ino.cpp b/src/NerdMinerV2.ino.cpp index c2be3f8..7e9c239 100644 --- a/src/NerdMinerV2.ino.cpp +++ b/src/NerdMinerV2.ino.cpp @@ -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 *******************************/