On Fri, 30 Apr 2010 18:17:26 -0400, "Jason White" said: > for some reason when I program it to light up the leds when the switch is > hit they are always lit When the switch is not "on" there must be something to make the input pin sense the "off" state. Typically you would have a resistor from the input pin to positive, negative, whatever the "off" state is, to always be a pull towards the off state. Nothing major, just something for the switch to operate against. 10k to 100k won't get you into any trouble. Many PICs have the option of builtin pullups, maybe you could use them instead of resistors if your "off" state is positive. The default is for them to not be activated, so you will have to configure them before you will be using your switches, usually you only do it once, near the beginning of your program. Cheers, Bob -- http://www.fastmail.fm - Email service worth paying for. Try it for free -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist