# sim-controller The led-controller firmware (`main/`) built for ESP-IDF's **linux** target, so the whole rig runs on a computer with no hardware. It serves the simulated rig itself at `/sim/` (see `led-simulator/README.md`). ```bash make sim-web # the controller on http://localhost:8080/ and the rig on http://localhost:8080/sim/ make test-sim # test/api against it, including test_rig_sim.py ``` `make sim` is the older headless rig over UDP 8766. Its MicroPython drivers are gone from led-driver, so it has no drivers to run. - Same sources as the board, minus Ethernet, Wi-Fi, mic and firmware OTA (`components/sim`: `app_main`, `esp_timer`, mic/OTA/littlefs stubs, `driver/gpio.h` and lwip socket headers). `sim_rig.c` and `sim_net.c` there are also compiled into the board's firmware. The beat clock at `audio_simulated_bpm` stands in for the mic. - ESP-NOW goes through `main/bridge.c`: the bridges in settings, or `browser` (the rig page) when there are none. - The store is a directory: `LED_SIM_DB` (default `sim-controller/data` under `make sim`). - `LED_SIM_HTTP_PORT` (default 8080), `LED_SIM_BRIDGE` (one bridge address, overriding the settings; `make sim-web` sets `browser`). - The binary runs on the host, not in Docker: rootless Docker's `--network host` is its own namespace.