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

@@ -62,7 +62,7 @@ void WS2812FX::setUpMatrix(bool reset) {
if (reset) { //WLEDMM: add reset option to switch on/off reset of customMappingTable
// safety check
if (Segment::maxWidth * Segment::maxHeight > MAX_LEDS || Segment::maxWidth <= 1 || Segment::maxHeight <= 1) {
DEBUG_PRINTLN(F("2D Bounds error."));
DEBUG_PRINTF("2D Bounds error. %d x %d\n", Segment::maxWidth, Segment::maxHeight);
isMatrix = false;
Segment::maxWidth = _length;
Segment::maxHeight = 1;