Channel 11 defaults, ESP-NOW driver config and rig/desktop updates
Moves the controller, bridge and led-driver default ESP-NOW channel to 11 and updates the led-driver and led-tool submodule pointers. Includes the rest of the working tree: web UI, desktop and sim-controller changes, API and bridge code, graphify output, and the .gitea and fixture-driver folders. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
35207a868a
commit
edf35e9c71
280 files changed
+24043
-1756
No files matched your search
+10
-26
@@ -68,7 +68,7 @@
|
||||
frame.src = VIEWS[view];
|
||||
}
|
||||
if (pane) {
|
||||
pane.querySelectorAll('.sim-pane-tabs button').forEach((b) =>
|
||||
pane.querySelectorAll('.sim-pane-tabs button[data-view]').forEach((b) =>
|
||||
b.setAttribute('aria-pressed', String(b.dataset.view === view)));
|
||||
}
|
||||
save({ view });
|
||||
@@ -222,13 +222,18 @@
|
||||
'<div class="sim-pane-tabs" role="group" aria-label="Show the rig or the preset editor">' +
|
||||
'<button type="button" data-view="rig">Rig</button>' +
|
||||
'<button type="button" data-view="presets">Presets</button>' +
|
||||
'<span class="sim-pane-tabs-gap"></span>' +
|
||||
'<button type="button" data-act="popout" title="Open the simulator in its own window">Pop out ↗</button>' +
|
||||
'<button type="button" data-act="close" title="Close the simulator">Close</button>' +
|
||||
'</div>' +
|
||||
'<iframe class="sim-pane-frame" title="Simulator"></iframe>' +
|
||||
'</div>';
|
||||
pane.querySelectorAll('.sim-pane-tabs button').forEach((b) => {
|
||||
pane.querySelectorAll('.sim-pane-tabs button[data-view]').forEach((b) => {
|
||||
b.setAttribute('aria-pressed', String(b.dataset.view === view));
|
||||
b.addEventListener('click', () => setView(b.dataset.view));
|
||||
});
|
||||
pane.querySelector('[data-act="popout"]').addEventListener('click', popOut);
|
||||
pane.querySelector('[data-act="close"]').addEventListener('click', close);
|
||||
|
||||
// Swipes that start in the rig (same origin, so its document can be listened to)
|
||||
frame = pane.querySelector('iframe');
|
||||
@@ -332,15 +337,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
// The Menu's Preset editor entry: open the pane on the presets, or switch the open pane to them
|
||||
function openPresets() {
|
||||
if (!isOpen()) {
|
||||
open('presets');
|
||||
return;
|
||||
}
|
||||
setView('presets'); // the controller stays on screen; on a phone the pager switches to it
|
||||
}
|
||||
const paneItems = []; // the Menu's Pop out and Close entries
|
||||
const paneItems = []; // the Menu's Close entry
|
||||
|
||||
function addMenuEntries() {
|
||||
// A header button for the Menu item to forward to, as the other entries do (help.js)
|
||||
@@ -363,22 +360,9 @@
|
||||
item.textContent = 'Simulator';
|
||||
const settingsItem = menu.querySelector('[data-target="settings-btn"]');
|
||||
menu.insertBefore(item, settingsItem);
|
||||
const presetsReal = document.createElement('button');
|
||||
presetsReal.id = 'sim-presets-btn';
|
||||
presetsReal.hidden = true;
|
||||
presetsReal.addEventListener('click', openPresets);
|
||||
document.body.appendChild(presetsReal);
|
||||
const presetsItem = document.createElement('button');
|
||||
presetsItem.type = 'button';
|
||||
presetsItem.className = 'edit-mode-only';
|
||||
presetsItem.dataset.target = 'sim-presets-btn';
|
||||
presetsItem.textContent = 'Preset editor';
|
||||
menu.insertBefore(presetsItem, settingsItem);
|
||||
|
||||
// Pop out and Close: in the Menu only while the pane is open (syncMenu). The menu forwards its clicks to
|
||||
// the real buttons with these ids (help.js)
|
||||
// Close: in the Menu only while the pane is open (syncMenu). The menu forwards its clicks to
|
||||
// the real button with this id (help.js)
|
||||
for (const [label, id, action] of [
|
||||
['Pop out ↗', 'sim-popout-btn', popOut],
|
||||
['Close simulator', 'sim-close-btn', close],
|
||||
]) {
|
||||
const real = document.createElement('button');
|
||||
|
||||
Reference in new issue
Block a user