Loading simulator…
A 3.3 V microcontroller GPIO can drive an indicator LED directly through a resistor when the required current is modest. The resistor must limit LED current without exceeding the GPIO’s practical drive capability.
LED1 drops approximately 1.8 V. With GPIO_OUT = 3.3 V, the resistor must drop .R1 between GPIO_OUT and the existing series I_LED1/LED1 path to ground. At 3.3 V, current flows and the LED lights. At 0 V, no forward voltage is available and the LED stays off.Change GPIO_OUT from 0 V to 3.3 V. Expect I_LED1 < 1 µA while LOW and approximately 3 mA while HIGH. Increase R1 to 1 kΩ to observe a lower ON current.