feat: browser simulator served by the controller, desktop build, browser bridge
- led-simulator: the rig runs the C++ led-driver as WebAssembly (sim-driver/), one single-threaded worker per bar, no cross-origin isolation needed. Rooms (one JSON per room) with an on-page editor, and a pattern gallery. The Python server, Pyodide boot and ring buffer are removed. - sim-controller sim_rig.c: serves /sim/ from an embedded pack, the page's WebSocket and the rooms/flash API. The desktop build embeds it too. - bridge.c: a "browser" bridge kind that carries ESP-NOW frames to the page; devices announced through it are marked sim. - UI: Simulator in the Menu, split view with resize and pop-out, swipe between controller and rig on phones; SIM/REAL badges in Devices. - Fades: preset pushes and Wi-Fi driver bodies always carry fade and beat_time, so "off" no longer inherits an earlier fade. - Also the sequences-v2 work in progress: desktop port, bridge firmware, serial bridge, Wi-Fi drivers, sequence timeline, audio and API changes. - led-driver: ESP-NOW link, beat sync, control messages, sim hooks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
698c1463c0
commit
581b751904
506 files changed
+42336
-3599
No files matched your search
@@ -0,0 +1,37 @@
|
||||
.gallery-intro { margin: 0; padding: 10px 16px 0; color: var(--muted); max-width: 900px; }
|
||||
.gallery {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
gap: 12px;
|
||||
padding: 12px 16px 24px;
|
||||
}
|
||||
.card {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
padding: 10px 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||||
.card-name { font-weight: 600; font-family: ui-monospace, Menlo, Consolas, monospace; }
|
||||
.card-head .btns { display: flex; gap: 4px; }
|
||||
.card-head button { padding: 2px 8px; }
|
||||
.card canvas { width: 100%; height: 22px; display: block; background: #0b0c0f; border-radius: 4px; }
|
||||
.card form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 8px; }
|
||||
.card form[hidden] { display: none; }
|
||||
.card form label { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 11px; }
|
||||
.card form label.wide { grid-column: span 2; }
|
||||
.card form label.full { grid-column: 1 / -1; }
|
||||
.card form label.check { flex-direction: row; align-items: center; gap: 5px; }
|
||||
.card form input { width: 100%; padding: 3px 5px; }
|
||||
.card form input[type=checkbox] { width: auto; }
|
||||
.colours { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
|
||||
.colours input[type=color] { width: 30px; height: 24px; padding: 0; border-radius: 4px; }
|
||||
.colours button { padding: 1px 7px; }
|
||||
@media (max-width: 420px) {
|
||||
.gallery { grid-template-columns: 1fr; padding: 12px 16px; }
|
||||
.card form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
Reference in new issue
Block a user