I have a collection of SPDT illuminated rocker switches that are designed for 12V systems. I'd like to use them as digital inputs for my Arduino system (Teensy, actually), but would like to have the lights be functional. I could just connect +5V and GND to the outer lugs and the middle lug to my digital in pin, but that probably wouldn't turn on the light.
If I connect these switches to +12VDC, then feed that as input to my Arduino, will the internal protection diodes protect my board, and give me a digital HIGH? Or will it fry it?