 | GpioExtensions.SetDriveModeWithFallback Method (GpioPin, GpioPinDriveMode) |
Sets a drive mode with automatic fallback 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)
Syntaxpublic static void SetDriveModeWithFallback(
this GpioPin pin,
GpioPinDriveMode driveMode
)
<ExtensionAttribute>
Public Shared Sub SetDriveModeWithFallback (
pin As GpioPin,
driveMode As GpioPinDriveMode
)
public:
[ExtensionAttribute]
static void SetDriveModeWithFallback(
[InAttribute] GpioPin^ pin,
[InAttribute] GpioPinDriveMode driveMode
)
[<ExtensionAttribute>]
static member SetDriveModeWithFallback :
pin : GpioPin *
driveMode : GpioPinDriveMode -> unit
Parameters
- pin
- Type: Windows.Devices.Gpio.GpioPin
The pin to set.
- driveMode
- Type: Windows.Devices.Gpio.GpioPinDriveMode
The requested 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