M1 and M2 controlled by current and IO for direction