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
+11
-6
@@ -15,16 +15,21 @@ esp_err_t seqplay_init(void);
|
||||
// Start sequence seq_id in zone_id. While another sequence plays, the switch waits for the next beat
|
||||
// (or downbeat, settings.sequence_switch_wait) and *queued is set. ESP_ERR_NOT_FOUND: no such sequence
|
||||
// in the profile; ESP_ERR_INVALID_ARG: no zone (msg says which); ESP_ERR_INVALID_SIZE: no steps.
|
||||
// Call with the store locked.
|
||||
// Call with the store locked. A one-shot (loop off) belongs to seqplay_fire instead.
|
||||
esp_err_t seqplay_start(const char *seq_id, const char *zone_id, const char *profile_id, const char **msg);
|
||||
|
||||
// Play sequence seq_id once as an animation over whatever runs in the zone (zone_id NULL or "": the
|
||||
// playing sequence's zone). wait: "now" (default), "beat" or "downbeat". The sequence underneath keeps
|
||||
// time and skips the drivers the animation lights; when it ends they go back to the sequence's current
|
||||
// step, or the zone's last preset. A new animation replaces the one playing. Call with the store locked.
|
||||
// Play sequence seq_id once (a one-shot) over whatever runs in the zone (zone_id NULL or "": the
|
||||
// playing sequence's zone). wait: "now" (default), "beat" or "downbeat". The looping sequence underneath
|
||||
// keeps time and skips the drivers the one-shot lights; when it ends they go back to that sequence's
|
||||
// current step, or the zone's last preset. A new one-shot replaces the one playing. Call with the store locked.
|
||||
esp_err_t seqplay_fire(const char *seq_id, const char *zone_id, const char *profile_id, const char *wait,
|
||||
const char **msg);
|
||||
// End the animation now and restore its drivers
|
||||
// A looping preset was picked in zone_id: the looping sequence playing there (or queued for it) ends,
|
||||
// without clearing the drivers. A one-shot playing over the zone carries on, and comes back to the preset.
|
||||
void seqplay_end_base_in(const char *zone_id);
|
||||
// Whether sequence seq_id is a one-shot: its `loop` is off (older records: kind "animation")
|
||||
bool seqplay_is_oneshot(const char *seq_id);
|
||||
// End the one-shot now and restore its drivers
|
||||
void seqplay_overlay_stop(void);
|
||||
// How long sequence seq_id plays once: *beats and *secs (each converted from the other at the current
|
||||
// tempo); unchanged when it has no steps. Call with the store locked.
|
||||
|
||||
Reference in new issue
Block a user