Loading simulator…
A pull-up arrangement uses the opposite logic convention: the input is HIGH while the switch is open and LOW when the switch closes. The pull-up resistor prevents a direct short between 3.3 V and ground.
VCC and GPIO_IN. In the open state, the high-impedance input sits near 3.3 V.R1 = 10 kΩ from VCC to GPIO_IN. The existing I_SW and SW1 form the path from GPIO_IN to GND on closure.R1 and the switch.In EWsim, open SW1 and check with negligible I_SW. Close it and verify , .