adding motor muxing and pin selection