Moses McKnight wrote: >> What is pulling the line low ? >> When the switch is *not* pressed, that is ? >> Botyh the switch and the leakage current in the LED >> will pull it high, I guess... > > Hmm, nothing is. *Something* must either pull the pin low *or* high. > I turn off the voltage going into the LED on the other > side before I start this routine, but it could be that there is just > enough charge left on the line to read high. Why should it *not* read high ? Again, what is pulling it low ??? Now, open inputs (if that's what you have) is a definite no-no in all cases. Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist