rename InputPin -> Output, OutputPin -> Input