Uing the fllowing pins with a button with an incorporated led?

  • I need a 0xCOFFEE.
    Let’s say we need LED indicator and we need to monitor a Stop switch; we only have one GPIO available.

  • We wire the LED and switch as shown above.

  • We can now have the LED be on/off under program control and at the same time, monitor our Stop switch.

What am I missing ? :face_with_spiral_eyes: