Edit

Share via


GpioPin.GetPinMode Method

Definition

Gets the current pin mode for the general-purpose I/O (GPIO) pin. The pin mode specifies whether the pin is configured as an input or an output, and determines how values are driven onto the pin.

public virtual System.Device.Gpio.PinMode GetPinMode ();
abstract member GetPinMode : unit -> System.Device.Gpio.PinMode
override this.GetPinMode : unit -> System.Device.Gpio.PinMode
Public Overridable Function GetPinMode () As PinMode

Returns

An enumeration value that indicates the current pin mode for the GPIO pin. The pin mode specifies whether the pin is configured as an input or an output, and determines how values are driven onto the pin.

Applies to