Hi I'm looking for a inline (sliding switch?)
When it's in the middle, it be in the off state
When it's slid to the right it turns a red led on
When it's slid to the left it turns a green led on
I'm sure this is simple but I cant seem to find a switch that dose what I need
Also it would be great if I could get a simple wiring diagram for what I need.
Best Answer
They're indeed called slide switches and typically look like this one from NKK:
This one has solder lugs, but you'll find many for PCB mount, either straight or at a 90° angle. Digikey has dozens of type in hundreds on stock, though you may find it difficult to locate switches with the LEDs built-in.
A minor disadvantage may be that almost all of these slide switches have a very limited travel, often no more than a few mm.
Connecting the LEDs is a piece of cake: