Outputs: positions (a key steps off → a → b → off, a knob up and down, the last off before the next on), strobe (a period) and dimmer (a knob's level by a step; a dimmable module gets a byte per channel, a relay just switches); in /keypad.html and /sim.html, a key's LED on while a position is chosen or a strobe runs
CI / check (push) Successful in 23s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-12-04 18:50:37 +01:00
1 parent e82b2236b5
commit 82a728e024
7 files changed
+239 -55

No files matched your search

+10 -3
View File
@@ -415,10 +415,17 @@ controller, nothing measured (no current, no feedback). A binding with an
`{ "input": "pad.E2 press", "output": "relays.1", "mode": "hold", "led":
"red" }` — `mode`: `toggle` (default), `on`, `off`, `hold` (on while held;
off when let go or when the keypad's heartbeat is gone), `pulse` (on for
`pulse_s`, 1 s by default). A PKP key bound to an output shows `led` (red
by default) while it's on, whatever the screen says. The module's
`pulse_s`, 1 s by default), `positions` (`"outputs": [a, b, …]`: a press
steps off → a → b → … → off, a knob turns up and down, one on at a time,
the last off before the next on), `strobe` (a press starts / stops it
blinking, `period_s` a whole on + off, 1 s), `dimmer` (a knob sets the
level by `step` %, 10; a press switches it on / off — only a module with
`"dimmable": true` dims, a relay just switches). A PKP key bound to an
output shows `led` (red by default) while it's on (a position chosen, a
strobe running), whatever the screen says. The module's
protocol is ours (after LD's native CAN control): RPDO1 `0x200+node`, a
bit per channel (byte 0 channels 1–8, byte 1 9–16), the whole state sent
bit per channel (byte 0 channels 1–8, byte 1 9–16) — a dimmable one a
byte per channel, 0–255, 8 channels at most — the whole state sent
on every change and every 100 ms; the module is to switch everything off
after 2 s without a frame. `"simulated": true` sends nothing, the state
only lives in the server — `/sim.html` shows the relays and switches