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:
jimmyandClaude Haiku 5.5 committed 2026-11-21 01:19:02 +13:00
1 parent 35207a868a
commit edf35e9c71
280 files changed
+24043 -1756

No files matched your search

+37
View File
@@ -292,6 +292,32 @@ static esp_err_t fire_sequence(httpd_req_t *req, const char *id)
return api_json(req, "200 OK", o, true);
}
// POST /sequences/<id>/preview {zone_id?}: play it on the simulated drivers only, alongside what plays live
static esp_err_t preview_sequence(httpd_req_t *req, const char *id)
{
const char *profile = api_current_profile();
if (!profile) {
return api_error(req, "404 Not Found", "No profile available");
}
cJSON *body = api_body_opt(req);
if (!body) {
return ESP_OK;
}
char zone[24] = "";
api_id(cJSON_GetObjectItem(body, "zone_id"), zone, sizeof(zone));
cJSON_Delete(body);
const char *msg;
esp_err_t err = seqplay_preview(id, zone, profile, &msg);
if (err != ESP_OK) {
return api_error(req, err == ESP_ERR_NOT_FOUND ? "404 Not Found" : "400 Bad Request",
msg ? msg : "sequence not found");
}
cJSON *o = cJSON_CreateObject();
cJSON_AddTrueToObject(o, "ok");
cJSON_AddStringToObject(o, "sequence_id", id);
return api_json(req, "200 OK", o, true);
}
bool sequences_route(httpd_req_t *req, int n, api_seg_t seg, esp_err_t *ret)
{
cJSON *all = store_coll("sequence");
@@ -341,6 +367,17 @@ bool sequences_route(httpd_req_t *req, int n, api_seg_t seg, esp_err_t *ret)
*ret = api_json(req, "200 OK", o, true);
return true;
}
if (n == 3 && method == HTTP_POST && !strcmp(seg[1], "preview") && !strcmp(seg[2], "stop")) {
seqplay_preview_stop();
cJSON *o = cJSON_CreateObject();
cJSON_AddTrueToObject(o, "ok");
*ret = api_json(req, "200 OK", o, true);
return true;
}
if (n == 3 && method == HTTP_POST && !strcmp(seg[2], "preview")) {
*ret = preview_sequence(req, seg[1]);
return true;
}
if (n == 3 && method == HTTP_POST && !strcmp(seg[2], "fire")) {
*ret = fire_sequence(req, seg[1]);
return true;