e==parseInt(LC.value))) LC.style.color = "red";
- else LC.style.color = d.ro_gpio.some((e)=>e==parseInt(LC.value)) ? "orange" : "#fff";
- } else LC.style.color = "#fff";
});
// Use helper function to calculate channel usage
@@ -510,6 +514,11 @@
gId('fpsNone').style.display = (d.Sf.FR.value == 0) ? 'block':'none';
gId('fpsWarn').style.display = (d.Sf.FR.value == 0) || (d.Sf.FR.value >= 80) ? 'block':'none';
gId('fpsHigh').style.display = (d.Sf.FR.value >= 80) ? 'block':'none';
+
+ if (d.pinUpdPending) {
+ d.pinUpdPending = false;
+ d.Sf.querySelectorAll("select.pin").forEach((e) => { pinUpd(e); });
+ }
}
function lastEnd(i) {
@@ -671,11 +680,18 @@
gId("com_rem").style.display = (i>0) ? "inline":"none";
}
+ // get pin dropdown flags for button type: touch=2, ADC=4, any=0
+ function btnPinFlags(t) { return (t==6||t==9) ? 2 : (t==7||t==8) ? 4 : 0; }
+ function btnPinDd(s) {
+ let t = parseInt(d.Sf["BE"+s].value);
+ makePinSelect("BT"+s, btnPinFlags(t));
+ d.Sf.querySelectorAll("select.pin").forEach(e => pinUpd(e));
+ }
function addBtn(i,p,t) {
var b = gId("btns");
var s = chrID(i);
var c = `#${i} GPIO: `;
- c += `
This firmware build does not include DMX Input support.
@@ -223,7 +243,7 @@ MQTT
Group Topic:
Publish on button press:
Retain brightness & color messages:
-Reboot required to apply changes. MQTT info
+Reboot required to apply changes. MQTT info
diff --git a/wled00/data/settings_um.htm b/wled00/data/settings_um.htm
index bb2113ddbc..0a795088d7 100644
--- a/wled00/data/settings_um.htm
+++ b/wled00/data/settings_um.htm
@@ -7,7 +7,6 @@