leds an kato switch machines

G'day. I am operating kato turnouts with a DPDT momentary toggle switch.
Can I include my Arduino to operate a 2 pin red/green led to indicate which way the
turnout has been switched?
Thanks

Humm, wonder what would happen if you bounced a digital pinmode between (output and high going) pinmode (input) connected to the +3 pin..

In my theory the LED would be 3volt one way and 2volt the other.

That's a thought. I,ll see how it goes and let you know

BNSF:
G'day. I am operating kato turnouts with a DPDT momentary toggle switch.
Can I include my Arduino to operate a 2 pin red/green led to indicate which way the
turnout has been switched?
Thanks

You could probably connect the LED to the switch without any Arduino.

And you can definitely do it with an Arduino.

ALWAYS make sure to have current limiting resistors on your LEDs.

...R