Well, more precisely you need a pin that can be switched between being an input and being an output. On 28X, 28X1, 40X and 40X1 these are the pins on port C; set them with "let dirs = ...". When they are set to input, they will be in tristate (high impedance) mode. 08/08M can do that, too, on some of their pins. I believe the Picaxe 14 can do it with tricks. You are out of luck on 18/18A/18X.
Wolfgang