swap pwm and motor direction pins