- 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>
1 line
15 KiB
JSON
1 line
15 KiB
JSON
{"nodes": [{"id": "$graphify-root$_led_driver_tools_move_bars_py", "label": "move_bars.py", "file_type": "code", "source_file": "led-driver/tools/move_bars.py", "source_location": "L1"}, {"id": "$graphify-root$_led_driver_tools_move_bars_call", "label": "call()", "file_type": "code", "source_file": "led-driver/tools/move_bars.py", "source_location": "L32", "_callable": true}, {"id": "$graphify-root$_led_driver_tools_move_bars_wifi_state", "label": "wifi_state()", "file_type": "code", "source_file": "led-driver/tools/move_bars.py", "source_location": "L41", "_callable": true}, {"id": "$graphify-root$_led_driver_tools_move_bars_switch", "label": "switch()", "file_type": "code", "source_file": "led-driver/tools/move_bars.py", "source_location": "L48", "_callable": true}, {"id": "$graphify-root$_led_driver_tools_move_bars_main", "label": "main()", "file_type": "code", "source_file": "led-driver/tools/move_bars.py", "source_location": "L64", "_callable": true}, {"id": "$graphify-root$_led_driver_tools_move_bars_rationale_2", "label": "Move bars to another Wi-Fi network (SSID), one at a time, checking each comes\u2026", "file_type": "rationale", "source_file": "led-driver/tools/move_bars.py", "source_location": "L2"}, {"id": "$graphify-root$_led_driver_tools_move_bars_rationale_49", "label": "Tell a bar to join ssid and wait for it to report that it has. True if it did.", "file_type": "rationale", "source_file": "led-driver/tools/move_bars.py", "source_location": "L49"}], "edges": [{"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "getpass", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L20", "weight": 1.0, "_python_import_module": "getpass", "_python_import_bindings": [["getpass", "getpass"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L21", "weight": 1.0, "_python_import_module": "json", "_python_import_bindings": [["json", "json"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L22", "weight": 1.0, "_python_import_module": "os", "_python_import_bindings": [["os", "os"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L23", "weight": 1.0, "_python_import_module": "sys", "_python_import_bindings": [["sys", "sys"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "time", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L24", "weight": 1.0, "_python_import_module": "time", "_python_import_bindings": [["time", "time"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "urllib_request", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L25", "weight": 1.0, "_python_import_module": "urllib.request", "_python_import_bindings": [["urllib.request", "urllib"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "$graphify-root$_led_driver_tools_move_bars_call", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L32", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "$graphify-root$_led_driver_tools_move_bars_wifi_state", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L41", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "$graphify-root$_led_driver_tools_move_bars_switch", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L48", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_py", "target": "$graphify-root$_led_driver_tools_move_bars_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L64", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_wifi_state", "target": "$graphify-root$_led_driver_tools_move_bars_call", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L43", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_switch", "target": "$graphify-root$_led_driver_tools_move_bars_call", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L51", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_switch", "target": "$graphify-root$_led_driver_tools_move_bars_wifi_state", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L57", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_main", "target": "$graphify-root$_led_driver_tools_move_bars_wifi_state", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L85", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_main", "target": "$graphify-root$_led_driver_tools_move_bars_switch", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L97", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_rationale_2", "target": "$graphify-root$_led_driver_tools_move_bars_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_move_bars_rationale_49", "target": "$graphify-root$_led_driver_tools_move_bars_switch", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/tools/move_bars.py", "source_location": "L49", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_led_driver_tools_move_bars_call", "callee": "Request", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L33", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1377, 1423]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_call", "callee": "add_header", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L35", "receiver": "req", "_python_receiver_shadowed": true, "receiver_type": "Request", "_python_call_site": [1457, 1507]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_call", "callee": "encode", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L36", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1527, 1552]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_call", "callee": "dumps", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L36", "receiver": "json", "_python_receiver_shadowed": false, "_python_call_site": [1527, 1543]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_call", "callee": "urlopen", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L37", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1562, 1606]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_call", "callee": "loads", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L38", "receiver": "json", "_python_receiver_shadowed": false, "_python_call_site": [1628, 1665]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_call", "callee": "decode", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L38", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1639, 1656]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_call", "callee": "read", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L38", "receiver": "r", "_python_receiver_shadowed": true, "_python_call_site": [1639, 1647]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_wifi_state", "callee": "OSError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-driver/tools/move_bars.py", "source_location": "L44"}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_wifi_state", "callee": "ValueError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-driver/tools/move_bars.py", "source_location": "L44"}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_switch", "callee": "time", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L54", "receiver": "time", "_python_receiver_shadowed": false, "_python_call_site": [2122, 2133]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_switch", "callee": "sleep", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L55", "receiver": "time", "_python_receiver_shadowed": false, "_python_call_site": [2152, 2170]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_switch", "callee": "POLL_S", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/move_bars.py", "source_location": "L55"}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_switch", "callee": "time", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L56", "receiver": "time", "_python_receiver_shadowed": false, "_python_call_site": [2181, 2192]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_switch", "callee": "get", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L58", "receiver": "st", "_python_receiver_shadowed": true, "_python_call_site": [2248, 2262]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_switch", "callee": "get", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L58", "receiver": "st", "_python_receiver_shadowed": true, "_python_call_site": [2275, 2294]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_switch", "callee": "sleep", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L60", "receiver": "time", "_python_receiver_shadowed": false, "_python_call_site": [2328, 2346]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_switch", "callee": "POLL_S", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/move_bars.py", "source_location": "L60"}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "split", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L66", "receiver": "a", "_python_receiver_shadowed": true, "_python_call_site": [2414, 2429]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "split", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L66", "receiver": "a", "_python_receiver_shadowed": true, "_python_call_site": [2435, 2450]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "startswith", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L66", "receiver": "a", "_python_receiver_shadowed": true, "_python_call_site": [2494, 2512]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "startswith", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L67", "receiver": "a", "_python_receiver_shadowed": true, "_python_call_site": [2550, 2568]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "get", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L68", "receiver": "opts", "_python_receiver_shadowed": true, "_python_call_site": [2581, 2599]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "str", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/move_bars.py", "source_location": "L69"}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "__doc__", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/move_bars.py", "source_location": "L70"}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "get", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L77", "receiver": "opts", "_python_receiver_shadowed": true, "_python_call_site": [2825, 2851]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "get", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L78", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [2871, 2894]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "str", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/move_bars.py", "source_location": "L78"}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "getpass", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L78", "receiver": "getpass", "_python_receiver_shadowed": false, "_python_call_site": [2924, 2980]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "get", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L89", "receiver": "st", "_python_receiver_shadowed": true, "_python_call_site": [3300, 3318]}, {"caller_nid": "$graphify-root$_led_driver_tools_move_bars_main", "callee": "get", "is_member_call": true, "source_file": "led-driver/tools/move_bars.py", "source_location": "L90", "receiver": "st", "_python_receiver_shadowed": true, "_python_call_site": [3346, 3365]}]} |