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
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
# Vendor the third-party sources the desktop build needs, from ESP-IDF (espressif/idf:v6.1) and the cJSON
|
||||
# managed component, then patch the two spots that use mbedTLS/PSA (see patch_vendor.py).
|
||||
# Run from the repository root after changing the IDF version: desktop/tools/vendor.sh
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/../.."
|
||||
IDF_IMAGE=${IDF_IMAGE:-espressif/idf:v6.1}
|
||||
OUT=desktop/third_party
|
||||
rm -rf "$OUT/esp_http_server" "$OUT/http_parser" "$OUT/cjson"
|
||||
mkdir -p "$OUT/esp_http_server/src/util" "$OUT/esp_http_server/include" "$OUT/http_parser" "$OUT/cjson"
|
||||
docker run --rm -v "$PWD/$OUT:/out" "$IDF_IMAGE" bash -c '
|
||||
set -e; S=/opt/esp/idf/components
|
||||
cp $S/esp_http_server/src/*.c $S/esp_http_server/src/esp_httpd_priv.h /out/esp_http_server/src/
|
||||
cp $S/esp_http_server/src/util/* /out/esp_http_server/src/util/
|
||||
cp $S/esp_http_server/include/esp_http_server.h /out/esp_http_server/include/
|
||||
cp $S/http_parser/http_parser.c $S/http_parser/http_parser.h $S/http_parser/LICENSE.txt /out/http_parser/
|
||||
cp $S/esp_http_server/LICENSE /out/esp_http_server/ 2>/dev/null || true
|
||||
chown -R 0:0 /out
|
||||
'
|
||||
# cJSON: the managed component the board and the sim already use (version pinned in dependencies.lock)
|
||||
CJSON=sim-controller/managed_components/espressif__cjson/cJSON
|
||||
cp "$CJSON/cJSON.c" "$CJSON/cJSON.h" "$CJSON/LICENSE" "$OUT/cjson/"
|
||||
python3 desktop/tools/patch_vendor.py "$OUT"
|
||||
# sdkconfig.h: the config the sim's ESP-IDF linux build generated (the same CONFIG_* values the firmware reads)
|
||||
if [ -f sim-controller/build/config/sdkconfig.h ]; then
|
||||
cp sim-controller/build/config/sdkconfig.h desktop/port/include/sdkconfig.h
|
||||
fi
|
||||
echo "vendored into $OUT"
|
||||
Reference in new issue
Block a user