Tri-state logic on IO pins?

The pinMode function can be used to put pin into a quasi Tri-state mode by setting it to input mode. When mode is set as output then either a high or low can be generated with the digitalWrite function. I believe the best way to ensure that the internal 'soft' pull-up is disabled is to make the output state a low before setting the mode to input.

Lefty