Connection to DC motor on Adafruit Motor Shield V2 for Arduino
A dcmotor object represents a connection to a DC motor on an
Adafruit® Motor Shield V2 connected to Arduino® hardware. Attach a motor shield to the Arduino hardware, and connect a DC motor to the appropriate pins on the motor shield.
Create a motor shield object using the addon function, and create a dcmotor object using the
dcmotor function. You can control your DC motor in MATLAB® using the object functions.
Use these object functions to control your DC motor.