Validate that the mode is allowed for specified pin
If the mode is not valid, and error will be thrown.
ar - connected arduino object
pin - name of pin to query mode validity of
mode - mode to query
Known modes are:
See also: arduino, configurePin.
Package: arduino