Skip to content
Open
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9dbe71c
Adjust SPI configuration for ESP32-S3 support
Will-wastelander Jun 14, 2026
11e3e9e
Make SD card pin configuration customizable
Will-wastelander Jun 15, 2026
80490a6
Update readme with SD card pin customization
Will-wastelander Jun 15, 2026
d38fd09
Improve formatting of SD card configuration code
Will-wastelander Jun 15, 2026
96f21c1
Added original comments back
Will-wastelander Jun 15, 2026
4920af2
Change SPI port from HSPI to FSPI for ESP32-S3
Will-wastelander Jun 15, 2026
c5d03af
Change pin configuration types from int8_t to uint8_t
Will-wastelander Jun 15, 2026
f6567cc
Update usermods/sd_card/sd_card.cpp
Will-wastelander Jun 15, 2026
ad21b1d
Merge branch 'main' into main
Will-wastelander Jun 16, 2026
9a9ab8b
Change SPI port from FSPI to HSPI for ESP32-S3
Will-wastelander Jun 18, 2026
4e17ff4
Change pin configuration types from uint8_t to int8_t
Will-wastelander Jun 20, 2026
9684c95
Update SPI configuration for SD card support
Will-wastelander Jun 20, 2026
951f362
Define SD card configuration pins if not defined
Will-wastelander Jun 20, 2026
9dc89db
Refactor SD card pin configuration logic
Will-wastelander Jun 20, 2026
b802162
Merge branch 'main' into main
Will-wastelander Jun 20, 2026
0a001f6
Merge branch 'main' into main
Will-wastelander Jun 20, 2026
3db59af
Fix macro definitions for SD card pin configurations
Will-wastelander Jun 20, 2026
e67f030
Add warning for SD card and Ethernet conflicts
Will-wastelander Jun 21, 2026
ee61d98
Remove preprocessor directive for SD card SPI init
Will-wastelander Jun 21, 2026
e59482c
Merge branch 'main' into main
Will-wastelander Jun 22, 2026
9ca0dcc
Merge branch 'main' into main
Will-wastelander Jun 23, 2026
6dfe8a9
Merge branch 'main' into main
Will-wastelander Jun 24, 2026
2ef83c2
Merge branch 'main' into main
Will-wastelander Jun 25, 2026
1bd9c82
Refactor SD card SPI configuration handling
Will-wastelander Jun 28, 2026
1e3efd5
Fix formatting for SD_SPI configuration in sd_card.cpp
Will-wastelander Jun 29, 2026
c63ef25
Adjust SPI class initialization for ESP32-S3
Will-wastelander Jun 29, 2026
8edc19a
Merge branch 'main' into main
Will-wastelander Jun 30, 2026
0cecf56
sdcard: fix wrong macro, add "error" fallback
softhack007 Jul 3, 2026
7804918
fix a few more errors in macros
softhack007 Jul 3, 2026
e265710
always use HSPI
softhack007 Jul 3, 2026
b32e27a
add samity check for _both_ SPI and MMC being defined
softhack007 Jul 3, 2026
035024f
make github build happy
softhack007 Jul 3, 2026
c30a7c3
Merge branch 'main' into main
softhack007 Jul 3, 2026
64b2d68
Merge branch 'main' into main
softhack007 Jul 3, 2026
ea089a8
Merge branch 'main' into main
softhack007 Jul 3, 2026
03b07f4
minor improvements
softhack007 Jul 4, 2026
2430d75
Merge branch 'main' into main
Will-wastelander Jul 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions usermods/sd_card/sd_card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@
#endif

#ifdef WLED_USE_SD_MMC
// SD_MMC configuration handled elsewhere
#elif defined(WLED_USE_SD_SPI)
SPIClass spiPort = SPIClass(VSPI);
#if defined(CONFIG_IDF_TARGET_ESP32S3)
// ESP32-S3 default hardware SPI bus is typically FSPI (or HSPI)
SPIClass spiPort = SPIClass(HSPI);
#else
// Classic ESP32 defaults (VSPI is default/safest for SD cards on standard pins)
SPIClass spiPort = SPIClass(VSPI);
Comment thread
Will-wastelander marked this conversation as resolved.
Outdated
// Alternative for classic ESP32 if needed: SPIClass spiPort = SPIClass(HSPI);
#endif
#endif

void listDir( const char * dirname, uint8_t levels);
Expand Down Expand Up @@ -241,4 +249,4 @@ void listDir( const char * dirname, uint8_t levels){
#endif

static UsermodSdCard sd_card;
REGISTER_USERMOD(sd_card);
REGISTER_USERMOD(sd_card);
Loading