GpioDriver.SetPinMode Method

Definition

Overloads

SetPinMode(Int32, PinMode)

Sets the mode to a pin.

SetPinMode(Int32, PinMode, PinValue)

Sets the mode to a pin and sets an initial value for an output pin.

SetPinMode(Int32, PinMode)

Sets the mode to a pin.

protected internal abstract void SetPinMode (int pinNumber, System.Device.Gpio.PinMode mode);
abstract member SetPinMode : int * System.Device.Gpio.PinMode -> unit
Protected Friend MustOverride Sub SetPinMode (pinNumber As Integer, mode As PinMode)

Parameters

pinNumber
Int32

The pin number in the driver's logical numbering scheme.

mode
PinMode

The mode to be set.

Applies to

SetPinMode(Int32, PinMode, PinValue)

Sets the mode to a pin and sets an initial value for an output pin.

protected internal virtual void SetPinMode (int pinNumber, System.Device.Gpio.PinMode mode, System.Device.Gpio.PinValue initialValue);
abstract member SetPinMode : int * System.Device.Gpio.PinMode * System.Device.Gpio.PinValue -> unit
override this.SetPinMode : int * System.Device.Gpio.PinMode * System.Device.Gpio.PinValue -> unit
Protected Friend Overridable Sub SetPinMode (pinNumber As Integer, mode As PinMode, initialValue As PinValue)

Parameters

pinNumber
Int32

The pin number in the driver's logical numbering scheme.

mode
PinMode

The mode to be set.

initialValue
PinValue

The initial value if the mode is output. The driver will do it's best to prevent glitches to the other value when changing from input to output.

Applies to