Skip to main content

GpioPinDriveMode Enum

Namespace: GHIElectronics.TinyCLR.Devices.Gpio · Assembly: GHIElectronics.TinyCLR.Devices.Gpio

Electrical drive mode applied to a GpioPin. Not every mode is available on every pin — call GpioPin.IsDriveModeSupported(GpioPinDriveMode) before GpioPin.SetDriveMode(GpioPinDriveMode) when in doubt.

public enum GpioPinDriveMode

Fields

NameValueDescription
Input0High-impedance input with no internal resistor.
Output1Push-pull output. The pin actively drives both high and low.
InputPullUp2Input with the internal pull-up resistor enabled.
InputPullDown3Input with the internal pull-down resistor enabled.
OutputOpenDrain4Open-drain output: the pin actively pulls low and floats when set high.