Ledmaps improvements

index.js:
- add global ledmap variable
- updateLen conditional draw parameter
- draw black out not mapped

json.cpp: 
- add "ledmap" in (de)serializeState (not info)
- use loadedLedmap

wled.cpp/h:
- loadLedMap is boolean, use loadedLedmap for ledmap
- show * password

liveviewws2D: colorAmp
settings2D: add id and name, change max to 255
This commit is contained in:
Ewoud
2023-02-11 20:45:21 +01:00
parent 81322a31fe
commit b02192e359
10 changed files with 2504 additions and 2457 deletions

View File

@@ -177,15 +177,15 @@ void WLED::loop()
delete busConfigs[i]; busConfigs[i] = nullptr;
}
strip.finalizeInit();
loadLedmap = 0;
loadLedmap = true;
if (aligned) strip.makeAutoSegments();
else strip.fixInvalidSegments();
yield();
serializeConfig();
}
if (loadLedmap >= 0) {
strip.deserializeMap(loadLedmap);
loadLedmap = -1;
if (loadLedmap) {
strip.deserializeMap(loadedLedmap);
loadLedmap = false;
}
yield();
@@ -800,7 +800,11 @@ void WLED::initConnection()
USER_PRINT(F("Connecting to "));
USER_PRINT(clientSSID);
USER_PRINTLN("...");
USER_PRINT(" / ");
for(int i = 0; i<strlen(clientPass); i++){
USER_PRINT("*");
}
USER_PRINTLN(" ...");
// convert the "serverDescription" into a valid DNS hostname (alphanumeric)
char hostname[25];