| GpioExtensionsSetDriveModeWithFallback Method (GpioPin, GpioPinDriveMode, GpioPinDriveMode) |
Sets a drive mode with a fallback mode if the requested mode is not supported.
Namespace: Microsoft.IoT.DeviceCoreAssembly: Microsoft.IoT.DeviceCore (in Microsoft.IoT.DeviceCore.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static void SetDriveModeWithFallback(
this GpioPin pin,
GpioPinDriveMode driveMode,
GpioPinDriveMode fallbackMode
)
<ExtensionAttribute>
Public Shared Sub SetDriveModeWithFallback (
pin As GpioPin,
driveMode As GpioPinDriveMode,
fallbackMode As GpioPinDriveMode
)
public:
[ExtensionAttribute]
static void SetDriveModeWithFallback(
[InAttribute] GpioPin^ pin,
[InAttribute] GpioPinDriveMode driveMode,
[InAttribute] GpioPinDriveMode fallbackMode
)
[<ExtensionAttribute>]
static member SetDriveModeWithFallback :
pin : GpioPin *
driveMode : GpioPinDriveMode *
fallbackMode : GpioPinDriveMode -> unit
Parameters
- pin
- Type: Windows.Devices.GpioGpioPin
The pin to set.
- driveMode
- Type: Windows.Devices.GpioGpioPinDriveMode
The requested drive mode.
- fallbackMode
- Type: Windows.Devices.GpioGpioPinDriveMode
The fallback drive mode.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
GpioPin. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also