I am trying to wrap my head around how to properly wire this 12v illuminated switch from radioshack with the Arduino for reading on/off state into one of the digital input pins. I have been able to successfully get the Arduino reading it with a pull up resistor and using just the switch's SPST contacts (labelled "ACC" and "POWER"), but I am trying to get the LED in the switch lighting up, too.
The toggle switch wants 12v to power it's LED and I have a 12v supply powering the Arduino. Judging from what I have found so far I think I need some sort of voltage divider and pull up/down combo platter? I just don't know enough about electrical engineering to know how to wire it (and I've tried about every combination I can think of so far)
Anyone know how this can be done?