Control servo, DC motors M1 and M2 in closed loop control using two
encoder inputs the on the MKR Motor Carrier or Nano Motor Carrier. Create
arduino
object before using
the motor carrier functions. See Connect to Arduino Hardware for more information.