docs: P4-Nano controller and simulator, users API, README screenshots
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>
This commit is contained in:
1 parent
8756315a7b
commit
e0c6c36996
32 files changed
+269751
-683
No files matched your search
+10
-12
@@ -1,24 +1,22 @@
|
||||
# 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:
|
||||
|
||||
```
|
||||
sim-controller (http://localhost:8080) ──UDP 8766──▶ led-simulator ──▶ 16 × led-driver/src
|
||||
◀── src_mac + packet ── ◀──
|
||||
```
|
||||
computer with no hardware. It serves the simulated rig itself at `/sim/` (see `led-simulator/README.md`).
|
||||
|
||||
```bash
|
||||
make sim # headless drivers (CPython), plus this controller
|
||||
make sim-web # drivers in the browser at http://localhost:8765/, plus this controller
|
||||
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). The beat clock at
|
||||
`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`: `dst_mac + packet` to the simulator, `src_mac + packet` back.
|
||||
On the board the same bridge runs when `settings.bridge` is set.
|
||||
- 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` (default `127.0.0.1:8766`).
|
||||
- `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.
|
||||
Reference in new issue
Block a user