This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Get terminals that have servo functionality


terminals = getServoTerminals(arduinoObj)



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


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.

Introduced in R2015b