swaps pin direction for door control