Edit

Share via


GpioPin.SetPinMode(PinMode) Method

Definition

Sets the pin mode of 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 void SetPinMode (System.Device.Gpio.PinMode value);
abstract member SetPinMode : System.Device.Gpio.PinMode -> unit
override this.SetPinMode : System.Device.Gpio.PinMode -> unit
Public Overridable Sub SetPinMode (value As PinMode)

Parameters

value
PinMode

An enumeration value that specifies pin mode to use 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.

Exceptions

The GPIO pin does not support the specified pin mode.

Applies to