Main Content

getServoTerminals

Get terminals that have servo functionality

Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.

Description

example

terminals = getServoTerminals(arduinoObj) returns terminals that have servo functionality on the Arduino® board.

Examples

collapse all

Get terminals on an Arduino Uno device that have specific servo functionality.

arduinoObj = obj.Parent;
terminals = getServoTerminals(arduinoObj)
terminals = 
2 3 4 5 6 7 8 9 10 11 12 13

Input Arguments

collapse all

Arduino object, specified as an object that is an internal variable called from within classes that derive from matlabshared.addon.LibraryBase.

Output Arguments

collapse all

Servo terminals, returned as an array of doubles. For more information on terminal and pin numbers, see Physical Terminals and Pin Numbers.

Version History

Introduced in R2015b