split Pin into input and output