(Sorry for joining the conversation late=85) On Mar 29, 2017, at 8:46 AM, Van Horn, David wrote: > You don't have to power the pullups unless you are reading the switches.= =20 > I use this a lot. Turn on the pullup(s), read the switch(es) and then tu= rn the pullups off. Can=92t you simply add to this: =93Once you know which pins are grounded, = and which are floating, set all of the floating pins to outputs (and leave = the grounded pins as inputs), and THEN turn off the pullups.=94 Then you have grounded inputs consuming zero power, and unconnected outputs= consuming zero power. It might be slightly shorter (code wise) to only turn off the pullups of th= e grounded pins? (Oh wait, I guess most PICs don=92t have per-pin pullups?= ) BillW --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .