Files
led-controller/graphify-out/cache/ast/v0.9.101-s36-g1339418af9f9/542f7ead998f253fcfb7d736491ada2b00d1952ce196c8452a8563e65bb73740.json
jimmyandClaude Opus 5.5 581b751904 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>
2026-11-16 19:32:46 +13:00

1 line
8.6 KiB
JSON

{"nodes": [{"id": "$graphify-root$_led_driver_main_main_cpp", "label": "main.cpp", "file_type": "code", "source_file": "led-driver/main/main.cpp", "source_location": "L1"}, {"id": "$graphify-root$_led_driver_main_main_app_main", "label": "app_main()", "file_type": "code", "source_file": "led-driver/main/main.cpp", "source_location": "L18", "_callable": true}], "edges": [{"source": "$graphify-root$_led_driver_main_main_cpp", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L4", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "nvs_flash", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L5", "weight": 1.0, "metadata": {"raw_include": "nvs_flash.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "$graphify-root$_led_driver_main_ddp_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L7", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/ddp.h"}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "$graphify-root$_led_driver_main_espnow_link_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L8", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/espnow_link.h"}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "$graphify-root$_led_driver_main_net_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L9", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/net.h"}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "$graphify-root$_led_driver_main_ota_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L10", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/ota.h"}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "$graphify-root$_led_driver_main_patterns_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L11", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/patterns.h"}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "$graphify-root$_led_driver_main_presets_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L12", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/presets.h"}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "$graphify-root$_led_driver_main_usb_cfg_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L13", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/usb_cfg.h"}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "$graphify-root$_led_driver_main_web_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L14", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/web.h"}, {"source": "$graphify-root$_led_driver_main_main_cpp", "target": "$graphify-root$_led_driver_main_main_app_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/main.cpp", "source_location": "L18", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "nvs_flash_init", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L21", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "ESP_ERROR_CHECK", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L23", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "nvs_flash_erase", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L23", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "nvs_flash_init", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L24", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "ESP_ERROR_CHECK", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L26", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "settings_load_hw", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L29", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "patterns_start", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L30", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "ESP_ERROR_CHECK", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L31", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "presets_init", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L31", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "presets_apply_startup", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L32", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "ESP_ERROR_CHECK", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L33", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "net_start", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L33", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "espnow_link_start", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L34", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "ESP_ERROR_CHECK", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L35", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "web_start", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L35", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "usb_cfg_start", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L36", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "ESP_ERROR_CHECK", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L37", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "ddp_start", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L37", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "ota_confirm_later", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L38", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "net_ap_ssid", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L41", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_main_app_main", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "led-driver/main/main.cpp", "source_location": "L42", "receiver": null, "lang": "cpp"}], "_cached_target_files": ["$graphify-root$/led-driver/main/ddp.h", "$graphify-root$/led-driver/main/espnow_link.h", "$graphify-root$/led-driver/main/net.h", "$graphify-root$/led-driver/main/ota.h", "$graphify-root$/led-driver/main/patterns.h", "$graphify-root$/led-driver/main/presets.h", "$graphify-root$/led-driver/main/usb_cfg.h", "$graphify-root$/led-driver/main/web.h"]}