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
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 number of the pin
String name of the pin
Current item owner of the pin
Current configured mode for the pin
pininfo - struct on pin information.
pininfolist - cell array of pin info
See also: arduino, configurePinResource, getResourceOwner.
Package: arduino