README, API, help, P4_NANO and the sub-READMEs now describe the ESP32-P4-Nano controller and the simulator on it. API.md gains the users and permissions routes; BENCH_TEST and SPECIFICATION are marked historical. Screenshots of the simulator, sequence editor and pattern gallery. Graph rebuilt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
1.3 KiB
Markdown
23 lines
1.3 KiB
Markdown
# 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.
|