i am making a button box for flight simulator. I want to put my leds in line such that whenever the gear of the aircraft is down(switch is toggle on) its a simple spst switch(s-1al) its quite realistic and used on many small aircraft's the lights in this case three smd leds turn on.
i am having a tough time figuring out the circuit for this with the pro micro.The leds i want them to be inline/hardware activated that way i wont need a extra pin to turn the lights on plus less code.
would it be possible to drive the three leds based on the input(analog,digital) pins current since that would be used to detect the switch movement. i have the two pins of the switch wired to D6 and D16 on the pro micro