Skip to content

Commit

Permalink
-S3: show PSRAM mode (qspi or OPI) in info panel
Browse files Browse the repository at this point in the history
  • Loading branch information
softhack007 committed May 6, 2024
1 parent 6c0b73b commit 45d0719
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ ${i.psram?inforow("PSRAM ☾",((i.tpram-i.psram)/1024).toFixed(0)+"/"+(i.tpram/1
${i.psusedram?inforow("Max used PSRAM ☾",((i.tpram-i.psusedram)/1024).toFixed(0)+" kB",", "+((i.tpram-i.psusedram)*100.0/i.tpram).toFixed(1)+"%"):""}
${i.freestack?inforow("Free stack ☾",(i.freestack/1000).toFixed(3)," kB"):""} <!--WLEDMM-->
<tr><td colspan=2><hr style="height:1px;border-width:0;color:SeaGreen;background-color:SeaGreen"></td></tr>
${i.tpram?inforow("PSRAM ☾",(i.tpram/1024/1024).toFixed(0)," MB"):""}
${i.tpram?inforow("PSRAM " + (i.psrmode?"("+i.psrmode+" mode) ":"") + " ☾",(i.tpram/1024/1024).toFixed(0)," MB"):""}

This comment has been minimized.

${i.e32flash?inforow("Flash mode "+i.e32flashmode+i.e32flashtext + " ☾",i.e32flash+" MB, "+i.e32flashspeed," Mhz"):""}
${i.e32model?inforow(i.e32model + " ☾",i.e32cores +" core(s),"," "+i.e32speed+" Mhz"):""}
${inforow("Environment",i.arch + " " + i.core + " (" + i.lwip + ")")}
Expand Down
7 changes: 7 additions & 0 deletions wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,13 @@ void serializeInfo(JsonObject root)
root[F("tpram")] = ESP.getPsramSize(); //WLEDMM
root[F("psram")] = ESP.getFreePsram();
root[F("psusedram")] = ESP.getMinFreePsram();
#if CONFIG_ESP32S3_SPIRAM_SUPPORT // WLEDMM -S3 has "qspi" or "opi" PSRAM mode
#if CONFIG_SPIRAM_MODE_OCT
root[F("psrmode")] = F("🚀 OPI");
#elif CONFIG_SPIRAM_MODE_QUAD
root[F("psrmode")] = F("qspi 🛻");
#endif
#endif
}
#else
// for testing
Expand Down

0 comments on commit 45d0719

Please sign in to comment.