From d8a4ae590986a1556768f86a206ec9857ff923fe Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Tue, 8 Sep 2026 00:11:26 -0400 Subject: [PATCH] =?UTF-8?q?native:=20the=20house=20light=20moves=20to=20th?= =?UTF-8?q?e=20top=20of=20the=20universe=20=E2=80=94=20d.510,=20and=20the?= =?UTF-8?q?=20kernel=20learns=20more=20serial=20dialects?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default fixture map in notepat and npscore becomes 3ch rgb on channels 510/511/512 (a 3ch head can't start higher than d.510 — blue lands exactly on the universe's last slot), shared convention with Menu Band's incoming DMX lane. CP210x and CH341 join FTDI in the kernel so the arriving USB-C DMX cable enumerates whatever chip it carries. Claude-Session: https://claude.ai/code/session_01Xju7GpzP6o2JwxtqfKqFiG --- fedac/native/kernel/config-minimal | 2 ++ fedac/native/pieces/notepat.mjs | 9 +++++---- fedac/native/pieces/npscore.mjs | 6 +++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/fedac/native/kernel/config-minimal b/fedac/native/kernel/config-minimal index 1c1e13bf4b..5e84493fcb 100644 --- a/fedac/native/kernel/config-minimal +++ b/fedac/native/kernel/config-minimal @@ -3343,6 +3343,8 @@ CONFIG_USB_SERIAL=y # CONFIG_USB_SERIAL_GENERIC is not set # CONFIG_USB_SERIAL_SIMPLE is not set CONFIG_USB_SERIAL_FTDI_SIO=y +CONFIG_USB_SERIAL_CP210X=y +CONFIG_USB_SERIAL_CH341=y # # USB Miscellaneous drivers diff --git a/fedac/native/pieces/notepat.mjs b/fedac/native/pieces/notepat.mjs index 7894201218..144e75bffc 100644 --- a/fedac/native/pieces/notepat.mjs +++ b/fedac/native/pieces/notepat.mjs @@ -473,11 +473,12 @@ let bgTarget = dark ? [20, 20, 25] : [240, 238, 232]; // DMX light mirrors bgColor via system.dmxSend (USB DMX PRO widget). // dmxMap turns rgb into universe slots (index 0 = channel 1) — swap this -// per fixture. House light: Chauvet Wedge Tri, 3ch personality at d.490 -// (plain R G B on 490/491/492, no dimmer gate). One reused frame buffer. -const dmxSlots = new Array(492).fill(0); +// per fixture. House default: 3ch rgb at the TOP of the universe, d.510 +// (R 510, G 511, B 512 — a 3ch head can't start higher). Shared with +// npscore.mjs and Menu Band's DMXOut. One reused full-universe buffer. +const dmxSlots = new Array(512).fill(0); const dmxMap = (r, g, b) => { - dmxSlots[489] = r; dmxSlots[490] = g; dmxSlots[491] = b; + dmxSlots[509] = r; dmxSlots[510] = g; dmxSlots[511] = b; return dmxSlots; }; let dmxLast = [-1, -1, -1]; diff --git a/fedac/native/pieces/npscore.mjs b/fedac/native/pieces/npscore.mjs index 3adddad66c..7d74e479b5 100644 --- a/fedac/native/pieces/npscore.mjs +++ b/fedac/native/pieces/npscore.mjs @@ -47,10 +47,10 @@ const DRUM_LETTER = { ride: "b", crash: "c#", splash: "d#", cowbell: "f#", block: "g#", tambo: "a#", }; -// House fixture map — Chauvet Wedge Tri, 3ch at d.490 (see notepat.mjs). -const dmxSlots = new Array(492).fill(0); +// House fixture map — 3ch rgb at d.510, top of the universe (see notepat.mjs). +const dmxSlots = new Array(512).fill(0); const dmxMap = (r, g, b) => { - dmxSlots[489] = r; dmxSlots[490] = g; dmxSlots[491] = b; + dmxSlots[509] = r; dmxSlots[510] = g; dmxSlots[511] = b; return dmxSlots; }; -- 2.51.2