Quote Originally Posted by Melanie
It could be half-way down this thread...

http://www.picbasic.co.uk/forum/showthread.php?t=516
Thanks, that must have been where I saw it. So basically set internal pull-ups on the chip and then take RB6/7 to ground through the normally open switch?

I've got other pins on portB turning on/off leds and I read on the datasheet that when portB is set as an output that the internal pull-ups are automatically turned off. If this is the case can I turn the pull-ups back on and still use half the pins as outputs and half as inputs?

Thanks