velxio/frontend/src/utils
David Montero fddc03aa60 fix(interconnect): classify Arduino Mega UART/I2C function-label pins
Follow-up audit after the ESP32 fix: classifyPin() was run for every board
against the protocol pin labels its element actually exposes. One real gap
remained -- Arduino Mega. Its dedicated SDA/SCL pins are only labelled (not
numbered), so I2C links drawn on them came back 'digital' and never bridged.
Map every Mega function label (TX/RX, TX0-3/RX0-3, SDA/SCL) to its pin number.

Audit result for the rest (added as board-protocols-audit.test.ts):
- Arduino Uno/Nano, Pico/Pico-W, STM32 Blue Pill: already OK.
- ESP32 / ESP32-C3: fixed earlier (esp32-uart-pin-classify).
- Raspberry Pi 3/4/5: OK -- the element labels pins by physical number (1..40)
  which normalize to BCM, so no function-label gap exists there.
2026-06-12 08:29:03 +02:00
..
analytics.ts
boardPinMapping.ts feat(boards): add 6 STM32 boards (F4 Discovery, Olimex H405, Netduino 2/+2, Pill variants) 2026-05-31 03:19:26 -03:00
boardProtocols.ts fix(interconnect): classify Arduino Mega UART/I2C function-label pins 2026-06-12 08:29:03 +02:00
captureCanvasPreview.ts
compilationLogger.ts feat(editor): per-target compilation console — a section per board/chip 2026-06-04 07:56:54 +02:00
countryFlag.ts
esp32ImageParser.ts
exampleToBuildNetlistInput.ts feat(sim): Phase 1d #2 + #9 — convergence helpers in Worker + enable LM358 subckt 2026-05-15 22:17:06 +02:00
fatImage.ts feat(microsd): SD-over-SPI card storage for AVR, RP2040 and ESP32 2026-06-11 03:59:53 +02:00
firmwareLoader.ts
generateExamplePreview.tsx
hexParser.ts
importProject.ts feat(import): unify project import — accept .vlx and .zip in both entry points 2026-05-22 20:55:06 +02:00
loadExample.ts feat(library-manifest): per-board manifests + autocomplete 2026-06-07 06:07:48 +02:00
pinPositionCalculator.ts fix(canvas): wires off pins after rotation — wrapper offset was (4,6) instead of (6,6) 2026-05-26 15:16:04 +02:00
projectPayload.ts feat(library-manifest): per-board manifests + autocomplete 2026-06-07 06:07:48 +02:00
reservedUsernames.ts
sdCardFiles.ts feat(microsd): SD-over-SPI card storage for AVR, RP2040 and ESP32 2026-06-11 03:59:53 +02:00
useSEO.ts
useTouchDevice.ts
uuid.ts
vlxFile.ts feat(editor): rename boards & custom chips; show which target owns each file 2026-06-04 06:22:25 +02:00
wireColors.ts
wireHitDetection.ts
wireUtils.ts
wokwiZip.ts