I have some nice toggle switches with LEDs in the shaft. They didn't come with a diagram, but best I can tell it's essentially this:
https://imgur.com/a/hngY4
What is the best practice for using this as a digital input? If I use the pull-up method then closing the switch and grounding the pin won't give me any voltage across the LED.
I know I'm going to slap my forehead when someone replies, but I can't quite see the elegant way to do it.
https://imgur.com/a/hngY4
What is the best practice for using this as a digital input? If I use the pull-up method then closing the switch and grounding the pin won't give me any voltage across the LED.
I know I'm going to slap my forehead when someone replies, but I can't quite see the elegant way to do it.