I was wondering if anyone here may be able to help me.
I currently have a C# program running on a raspberry pi, that detects the state of a toggle switch connected to pin 13, and ground. I have an LED and resistor connected in series to the toggle switch. What I want to happen is for when the switch is pressed, the LED will come on, and the C# program detects the state of the toggle switch.
Currently, when the switch is toggled, the program correctly detects the input, but the LED connected in series does not turn on. I'm guessing this is due to it not having enough current or something? Any advice would be greatly welcome!