From 9c8e98cad2b08b9a95d820574ad59937fbe09524 Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Sun, 22 Mar 2026 18:46:52 -0300 Subject: [PATCH] feat: Enhance RP2040 simulator GPIO handling to support InputPullUp state --- frontend/src/simulation/RP2040Simulator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/simulation/RP2040Simulator.ts b/frontend/src/simulation/RP2040Simulator.ts index d073dea..a4889a3 100644 --- a/frontend/src/simulation/RP2040Simulator.ts +++ b/frontend/src/simulation/RP2040Simulator.ts @@ -247,7 +247,7 @@ export class RP2040Simulator { if (!gpio) continue; const unsub = gpio.addListener((state: GPIOPinState) => { - const isHigh = state === GPIOPinState.High; + const isHigh = state === GPIOPinState.High || state === GPIOPinState.InputPullUp; this.pinManager.triggerPinChange(pin, isHigh); if (this.onPinChangeWithTime && this.rp2040) { // IClock interface exposes `nanos` (not `timeUs`)