feat: sequences v2, bridges, and sim-controller

Rework sequences (engine, seqplay, envelope, API, web UI), add bridge
support, add the host sim-controller and rig simulation tests, and
update docs, presets and project tooling config.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Sonnet 5.5 committed 2026-11-10 17:47:27 +13:00
1 parent d664026ee5
commit 2543673bd8
68 files changed
+5761 -460

No files matched your search

+9 -1
View File
@@ -139,13 +139,21 @@ static esp_err_t write_file(const char *base, const char *code, size_t len)
return ok ? ESP_OK : ESP_FAIL;
}
// Patterns the driver has built in (no .py file); the seed presets use them
// Definitions used when the pattern collection has none: the driver's built-ins (no .py file, the seed
// presets use them) and the animation patterns (field patterns span the rig, see led-driver/src/rig.py)
static const struct {
const char *name, *json;
} BUILTIN[] = {
{ "on", "{\"min_delay\":10,\"max_delay\":10000,\"max_colors\":1}" },
{ "off", "{\"min_delay\":10,\"max_delay\":10000,\"max_colors\":0}" },
{ "rainbow", "{\"n1\":\"Step Rate\",\"min_delay\":10,\"max_delay\":10000,\"max_colors\":0}" },
{ "hit", "{\"n1\":\"Attack (ms / ¼ beats)\",\"n2\":\"Hold\",\"n3\":\"Decay\",\"n4\":\"End: 0 background, 1 stay lit\",\"min_delay\":0,\"max_delay\":10000,\"max_colors\":10}" },
{ "keyframes", "{\"n1\":\"Easing: 0 linear, 1 in-out, 2 step, 3 in, 4 out\",\"n2\":\"End: 0 last colour, 1 background, 2 off\",\"min_delay\":10,\"max_delay\":60000,\"max_colors\":10}" },
{ "sweep", "{\"n1\":\"Direction (degrees)\",\"n2\":\"Band width (‰ of rig)\",\"n3\":\"Trail (‰)\",\"n4\":\"1 = leave lit (wipe)\",\"min_delay\":10,\"max_delay\":60000,\"max_colors\":10}" },
{ "ripple", "{\"n1\":\"Ring width (‰)\",\"n2\":\"Rings at once\",\"n3\":\"1 = from the edge in\",\"n4\":\"Fade with distance (‰)\",\"min_delay\":10,\"max_delay\":60000,\"max_colors\":10}" },
{ "spin", "{\"n1\":\"Arms\",\"n2\":\"Arm width (degrees)\",\"n3\":\"Tail (degrees)\",\"n4\":\"1 = clockwise\",\"min_delay\":10,\"max_delay\":60000,\"max_colors\":10}" },
{ "grow", "{\"n1\":\"From: 0 centre, 1 edges, 2 round, 3 across\",\"n2\":\"Then: 0 stay, 1 empty back, 2 empty on, 3 off\",\"n3\":\"Direction (degrees, from = 3)\",\"min_delay\":10,\"max_delay\":60000,\"max_colors\":10}" },
{ "field_wave", "{\"n1\":\"Direction (degrees)\",\"n2\":\"Wavelength (‰ of rig)\",\"n3\":\"Kind: 0 linear, 1 rings, 2 swirl, 3 plasma\",\"min_delay\":10,\"max_delay\":60000,\"max_colors\":10}" },
};
// Stored metadata plus the built-ins and {} for every other pattern file, as {name: {...}}