Get the mode of a pin allocated previously by configurePinResource.
ar - connected arduino object
terminal - terminal number to get owner of.
mode - mode of the terminal pin, or "not_set" if not owned.
See also: configurePinResource, getResourceOwner.
Package: arduino