addon
Connection to add-on device for Arduino hardware
Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.
Description
An object created by addon
represents a connection to an
add-on device on Arduino® hardware. You can use the addon
function to create add-on
libraries such as L3G, LSM303, 1–Wire, Capacitive sensor, NeoPixel, and DHT22. These libraries are not part of the MATLAB® Support Package for Arduino Hardware and must be downloaded separately. You can also create your own custom
Arduino add-on libraries as mentioned in Create Custom Arduino Add-On Library.
This page is specifically about the 'Adafruit\MotorshieldV2'
add-on
library for the motorshieldv2
object, included in the MATLAB Support Package for Arduino Hardware. Attach an Adafruit® Motor Shield V2 to Arduino hardware, and use 'Adafruit\MotorshieldV2'
as an input
argument to create a motorshieldv2
object. You can create connections to
motors on the shield using object functions.
Creation
Syntax
Description
creates an add-on connection to Adafruit Motor Shield V2 connected to the Arduino hardware shield
= addon(a
,'Adafruit\MotorshieldV2')a
.
adds additional options specified by one or more shield
= addon(a
,'Adafruit\MotorshieldV2',Name,Value
)Name,Value
pair
arguments.
Input Arguments
Properties
Object Functions
Use these object functions to create a connection to a motor on the Adafruit Motor Shield V2.
Examples
Version History
Introduced in R2014b