Arduino Toolkit - @arduino/getPinInfo


: pininfo = getPinInfo (ar, pin)
: pininfoarray = getPinInfo (ar, pinarray)

Get the pin information from the input pins values.

getPinInfo (ar, pin) will get information for a single pin.

getPinInfo (ar, pinarray) will get a cell array of pin information

Inputs

ar - the connected arduino object.

pin - a pin number or pin name.

pinarray - the array of pin numbers or names

The pininfo struct contains the following fields:

terminal

Terminal number of the pin

name

String name of the pin

owner

Current item owner of the pin

mode

Current configured mode for the pin

Outputs

pininfo - struct on pin information.

pininfolist - cell array of pin info

See also: arduino, configurePinResource, getResourceOwner.