From 3f41ba6bdf3bcdcea6632dd2179a91073b11135b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Thu, 25 Feb 2021 13:22:29 +0100 Subject: [PATCH] Pin clash fix, minimization. --- wled00/data/settings_leds.htm | 141 +++++++++++++++++----------------- wled00/html_settings.h | 8 +- 2 files changed, 74 insertions(+), 75 deletions(-) diff --git a/wled00/data/settings_leds.htm b/wled00/data/settings_leds.htm index 92039373..40386618 100644 --- a/wled00/data/settings_leds.htm +++ b/wled00/data/settings_leds.htm @@ -86,7 +86,7 @@ } function UI(change=false) { - var isRGBW = false, memu = 0, p3u = false, lCount = 0; + var isRGBW = false, memu = 0, p3u = false; d.getElementById('ampwarning').style.display = (d.Sf.MA.value > 7200) ? 'inline':'none'; @@ -157,7 +157,7 @@ if (i==j) continue; var n2 = LCs[j].name.substring(0,2); if (n2=="L0" || n2=="L1" || n2=="L2" || n2=="L3" || n2=="L4" || n2=="RL" || n2=="BT" || n2=="IR" || n2=="AX") - if (LCs[j].value!="" && LCs[i].value==LCs[j].value) {alert("Pin clash!");LCs[i].value="";LCs[i].focus();break;} + if (LCs[j].value!="" && LCs[i].value==LCs[j].value) {alert("Pin clash!");LCs[j].value="";LCs[j].focus();break;} } } } @@ -212,47 +212,46 @@ var f = d.getElementById("mLC"); if (n==1) { -// npm run build has trouble minimizing spaces inside string - var cn = -`
- ${i>0?'
':''} - ${i+1}: -   - Color Order: - - RGBW:
- Pin: - Clock: - - - -
- Start:   -
- Count:
- Reverse:

-
`; + // npm run build has trouble minimizing spaces inside string + var cn = '
'+ + i>0?'
':''+ + i+1 + ':'+ + ` '+ + 'Color Order:'+ + ` '+ + `RGBW:
`+ + `Pin: `+ + `Clock: `+ + ``+ + ``+ + ``+ + '
'+ + `Start:  `+ + `
`+ + `Count:
`+ + `Reverse:

`+ + '
'; f.insertAdjacentHTML("beforeend", cn); } if (n==-1) { @@ -279,35 +278,35 @@

LED & Hardware setup

- Total LED count:
- Recommended power supply for brightest white:
- ?
-
-
- Enable automatic brightness limiter:
-
- Maximum Current: mA
-

Hardware setup

LED outputs:
diff --git a/wled00/html_settings.h b/wled00/html_settings.h index 05e7f082..7a5a2fd1 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -72,15 +72,15 @@ Do not enable if WiFi is working correctly, increases power consumption.
LED Settings