velxio/docs
davidmonterocrespo24 ba59fd4b4a refactor(esp32): retire ledc_update + broadcastPwm + channelGpioMemo
The SignalRouter path has been in prod through Phase 2.5 / Phase 3.3
deploys without regressions, so the temporary fallback shipped in
commit 77bf897 can come out. Closes #101.

Backend (esp32_worker.py + esp32_lib_manager.py):
- Stop emitting `ledc_update` from the 0x5000 LEDC callback and from
  the polling thread. Only `ledc_duty` (channel + duty_pct) and the
  GPIO matrix routing events ship now.
- Drop the channel→gpio reverse-lookup that fed the legacy event.

Frontend:
- Delete `PinManager.broadcastPwm` and `PinManager.pwmListenerPinCount`.
- Delete `makeLedcUpdateHandler` + its `channelGpioMemo`.
- Delete `Esp32Bridge.onLedcUpdate` field + the `case 'ledc_update':`
  message handler + the `LedcUpdate` type.
- Strip `this.onLedcUpdate = null` from 14 test mocks.
- Rewrite the `does not call broadcastPwm` guard in
  esp32-multi-servo-gpio-matrix.test.ts to assert the method itself
  no longer exists on PinManager (stronger regression guard than the
  spy version, and doesn't need vi).
- Remove the `PinManager.broadcastPwm fallback` describe block from
  esp32-servo-pot.test.ts — every test in it exercised the deleted
  fallback path.

Docs (ESP32_EMULATION.md):
- Replace `ledc_update` rows in the events / implementation tables
  with the SignalRouter trio (`ledc_duty`, `gpio_routing`,
  `gpio_routing_clear`).
- Update the visual flow diagram + the "why this matters" paragraph
  to past-tense the broadcastPwm bug.

Tests: 1886 frontend tests pass (the previously-failing
board-kinds-coverage test that needed the new Pi Zero/1/2 kinds is
also green). Backend unit suite: 279 pass, the 11 espidf_real_paths
prereq failures are environment-dependent (need arduino-cli libs in
the local shell) and unrelated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 04:05:34 +02:00
..
examples Translate Spanish docs to English and add SEO-optimised URL routing for documentation 2026-03-11 18:46:42 +00:00
img/boards Refactor code structure for improved readability and maintainability 2026-03-16 14:28:16 -03:00
wiki refactor: rename deploy/ → docker/ (container build, not host deploy) 2026-05-04 00:05:55 -03:00
ARCHITECTURE.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
BOOT_IMAGES.md feat(sim): boot_images module + Pi 3 emulation restored 2026-05-16 05:41:46 +02:00
BUILD-QEMU.md docs: BUILD-QEMU.md + 'Build QEMU from source' docs section 2026-05-14 05:44:10 +02:00
CUSTOM_CHIPS.md Add ESP32 chip demos and comprehensive tests for I2C, SPI, and UART interactions 2026-04-28 19:24:39 -03:00
ESP32C3_WIFI_BLUETOOTH.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
ESP32_EMULATION.md refactor(esp32): retire ledc_update + broadcastPwm + channelGpioMemo 2026-05-19 04:05:34 +02:00
ESP32_WIFI_BLUETOOTH.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
MCP.md Merge doc/ into docs/ — eliminate duplicate documentation folders 2026-03-11 17:03:51 +00:00
MICROPYTHON_IMPLEMENTATION.md feat: add comprehensive MicroPython implementation documentation for RP2040, ESP32, ESP32-S3, and ESP32-C3 boards 2026-03-29 23:50:55 -03:00
PICO_W_WIFI_EMULATION.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
RASPBERRYPI3_EMULATION.md docs(pi3): refresh RASPBERRYPI3_EMULATION.md for the boot_images flow 2026-05-16 07:07:41 +02:00
RISCV_EMULATION.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
RP2040_EMULATION.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
SETUP_COMPLETE.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
THIRD_PARTY.md feat(components): swap BMP280 + ATtiny85 to fritzing art 2026-05-08 23:06:44 -03:00
analytics.md feat: add GA4 key events tracking (run_simulation, open_example, create_project, compile_code, visit_github) 2026-03-12 22:02:24 +00:00
components.md
emulator.md
getting-started.md Refactor code structure for improved readability and maintainability 2026-03-16 14:22:23 -03:00
img1.png Merge doc/ into docs/ — eliminate duplicate documentation folders 2026-03-11 17:03:51 +00:00
img2.png Merge doc/ into docs/ — eliminate duplicate documentation folders 2026-03-11 17:03:51 +00:00
img3.png Merge doc/ into docs/ — eliminate duplicate documentation folders 2026-03-11 17:03:51 +00:00
img4.png Merge doc/ into docs/ — eliminate duplicate documentation folders 2026-03-11 17:03:51 +00:00
img5.png Refactor code structure for improved readability and maintainability 2026-03-16 18:31:46 -03:00
img6.png Refactor code structure for improved readability and maintainability 2026-03-23 23:24:14 -03:00
intro.md Add ESP32 chip demos and comprehensive tests for I2C, SPI, and UART interactions 2026-04-28 19:24:39 -03:00
roadmap.md