Skip to content

Commit 45d0719

Browse files
committed
-S3: show PSRAM mode (qspi or OPI) in info panel
1 parent 6c0b73b commit 45d0719

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

wled00/data/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ ${i.psram?inforow("PSRAM ☾",((i.tpram-i.psram)/1024).toFixed(0)+"/"+(i.tpram/1
702702
${i.psusedram?inforow("Max used PSRAM ☾",((i.tpram-i.psusedram)/1024).toFixed(0)+" kB",", "+((i.tpram-i.psusedram)*100.0/i.tpram).toFixed(1)+"%"):""}
703703
${i.freestack?inforow("Free stack ☾",(i.freestack/1000).toFixed(3)," kB"):""} <!--WLEDMM-->
704704
<tr><td colspan=2><hr style="height:1px;border-width:0;color:SeaGreen;background-color:SeaGreen"></td></tr>
705-
${i.tpram?inforow("PSRAM ☾",(i.tpram/1024/1024).toFixed(0)," MB"):""}
705+
${i.tpram?inforow("PSRAM " + (i.psrmode?"("+i.psrmode+" mode) ":"") + " ☾",(i.tpram/1024/1024).toFixed(0)," MB"):""}
706706
${i.e32flash?inforow("Flash mode "+i.e32flashmode+i.e32flashtext + " ☾",i.e32flash+" MB, "+i.e32flashspeed," Mhz"):""}
707707
${i.e32model?inforow(i.e32model + " ☾",i.e32cores +" core(s),"," "+i.e32speed+" Mhz"):""}
708708
${inforow("Environment",i.arch + " " + i.core + " (" + i.lwip + ")")}

wled00/json.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,13 @@ void serializeInfo(JsonObject root)
10661066
root[F("tpram")] = ESP.getPsramSize(); //WLEDMM
10671067
root[F("psram")] = ESP.getFreePsram();
10681068
root[F("psusedram")] = ESP.getMinFreePsram();
1069+
#if CONFIG_ESP32S3_SPIRAM_SUPPORT // WLEDMM -S3 has "qspi" or "opi" PSRAM mode
1070+
#if CONFIG_SPIRAM_MODE_OCT
1071+
root[F("psrmode")] = F("🚀 OPI");
1072+
#elif CONFIG_SPIRAM_MODE_QUAD
1073+
root[F("psrmode")] = F("qspi 🛻");
1074+
#endif
1075+
#endif
10691076
}
10701077
#else
10711078
// for testing

0 commit comments

Comments
 (0)