diff --git a/wled00/data/settings_leds.htm b/wled00/data/settings_leds.htm index e4cf1b89..9026d94e 100644 --- a/wled00/data/settings_leds.htm +++ b/wled00/data/settings_leds.htm @@ -20,14 +20,14 @@ var nm = LCs[i].name.substring(0,2); //check for pin conflicts - if (nm=="L0" || nm=="L1" || nm=="RL" || nm=="BT" || nm=="IR" || nm=="AX") + if (nm=="L0" || nm=="L1" || n2=="L2" || n2=="L3" || n2=="L4" || nm=="RL" || nm=="BT" || nm=="IR" || nm=="AX") if (LCs[i].value!="" && LCs[i].value!="-1") { - if (d.um_p && d.um_p.some((e)=>e==parseInt(LCs[i].value,10))) {alert("Usermod pin conflict!");LCs[i].focus();return;} + if (d.um_p && d.um_p.some((e)=>e==parseInt(LCs[i].value,10))) {alert("Usermod/reserved pin conflict!");LCs[i].focus();return;} for (j=i+1; j 49) ? "Data pin:" : (type >41) ? "Pins:" : "Pin:"; + d.getElementById("p0d"+n).innerHTML = (type > 49) ? "Data:" : (type >41) ? "Pins:" : "Pin:"; d.getElementById("p1d"+n).innerHTML = (type > 49) ? "Clk:" : ""; var LK = d.getElementsByName("L1"+n)[0]; @@ -121,8 +121,9 @@ d.getElementById("LC").readOnly = !(type > 31 && type < 48); // not analog if (change) { d.getElementById("ew"+n).checked = (type == 30 || type == 31 || type == 44 || type == 45); // RGBW checkbox, TYPE_xxxx values from const.h - d.getElementById("ew"+n).onclick = (type > 31 && type < 48) ? (function(){return false}) : (function(){}); // prevent change for analog + d.getElementById("ls"+n).value = n+1; } + d.getElementById("ew"+n).onclick = (type > 31 && type < 48) ? (function(){return false}) : (function(){}); // prevent change for analog isRGBW |= d.getElementById("ew"+n).checked; d.getElementById("dig"+n).style.display = (type > 31 && type < 48) ? "none":"inline"; d.getElementById("psd"+n).innerHTML = (type > 31 && type < 48) ? "Index:":"Start:"; @@ -140,6 +141,7 @@ for (i=0; imaxLC)maxLC=c;} diff --git a/wled00/html_settings.h b/wled00/html_settings.h index a1d855cd..1b171d22 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -72,7 +72,7 @@ Do not enable if WiFi is working correctly, increases power consumption.
LED Settings