velxio/frontend/src/simulation/parts
David Montero 7fb2ee3de9 feat(esp32): drive digital inputs from the solved circuit (real-wiring fidelity)
ESP32 digitalRead now reflects the actual circuit instead of a part-level
seed, so a button behaves like hardware — including breaking when it's
mis-wired.

- connectDigitalInputsToMcu: after each SPICE solve, threshold every ESP32
  input pin's net voltage (3.3 V LVCMOS, hysteresis) and push the level into
  QEMU. Only pins the MCU isn't driving as outputs are injected.
- Esp32BridgeShim advertises spiceDrivenInputs; the pushbutton / 6mm-button /
  slide-switch parts skip their direct setPinState seed for such boards and
  only flip the component property (pressed/value), which re-solves the
  circuit. The connector then decides the level from the real wiring.
- makePinPullHandler no longer seeds the pin; it only records the pull
  (netlist resistor) + requests a re-solve, so the read stays circuit-driven.
- GROUND_PIN_RE now matches bare numbered grounds (GND2, GND3) — the ESP32
  DevKit element labels its second pad 'GND2', which previously floated.

Net effect: a correctly-wired INPUT_PULLUP button idles HIGH and reads LOW
pressed; a button mis-wired with GND on the wrong terminal reads stuck-LOW,
matching real silicon. AVR / RP2040 keep the legacy part-seed path.
2026-06-24 22:52:52 +02:00
..
ActiveParts.ts
…
BasicParts.ts feat(esp32): drive digital inputs from the solved circuit (real-wiring fidelity) 2026-06-24 22:52:52 +02:00
ChipParts.ts
…
ComplexParts.ts fix(sim): monophonic buzzer guard — replace note on pitch change (no stacking) 2026-06-11 02:35:33 -03:00
CustomChipPart.ts feat(chipbus): Galaksija keyboard - type BASIC over the bus 2026-06-05 14:37:42 -03:00
EPaperPart.ts
…
LogicGateParts.ts
…
MotorDriverParts.ts
…
PartSimulationRegistry.ts
…
ProtocolParts.ts fix(sim): SSD1306 page-addressing mode (Tiny4kOLED/U8g2 OLED garbled) 2026-06-19 18:08:01 +02:00
SensorParts.ts fix(sim): correct NTC temperature sensor divider + reset to default on restart 2026-06-15 23:21:36 +02:00
index.ts feat(sim): P4 runtime burnout for resistors + electrolytic capacitors 2026-06-18 04:35:56 +02:00
partUtils.ts
…
runtimeBurnout.ts feat(sim): P4 runtime burnout for resistors + electrolytic capacitors 2026-06-18 04:35:56 +02:00