switch port with selected pin number