Language
Edit

ArduinoBoard.GetPinMode(Int32) Method

Definition

Returns the current assignment of the given pin

public Iot.Device.Arduino.SupportedMode GetPinMode(int pinNumber);
member this.GetPinMode : int -> Iot.Device.Arduino.SupportedMode
Public Function GetPinMode (pinNumber As Integer) As SupportedMode

Parameters

pinNumber
Int32

Pin number to query

Returns

An instance of SupportedMode from the list of known modes (or a new instance for an unknown mode)

Remarks

Thi is the opposite of SetPinMode(Int32, SupportedMode). See there for usage limitations.

Applies to