Like I said in the thread at . . . . [Solved] Multi-purpose pins on microcontrollers - #7 by dchisholm
Dale