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.

getPinsFromTerminals

Get pin numbers from terminal

Syntax

pins = getPinsFromTerminals(arduinoObj, terminals)

Description

example

pins = getPinsFromTerminals(arduinoObj, terminals) retrieves pin numbers for the specified terminal.

Examples

collapse all

Get pin numbers from terminals 2, 3, 4 on your Arduino® hardware.

arduinoObj = obj.Parent;
pins = getPinsFromTerminals(obj, [2 3 4])
pins =

{'D2', 'D3', 'D4'}

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.

Terminal number on Arduino hardware, specified as a double or an array of doubles.

Output Arguments

collapse all

Pins from specified terminals, returned as a character vector or cell array of character vectors. For more information on terminal and pin numbers, see Physical Terminals and Pin Numbers.

Introduced in R2015b