-api-id | -api-type |
---|---|
M:Windows.Devices.Gpio.GpioPin.SetDriveMode(Windows.Devices.Gpio.GpioPinDriveMode) |
winrt method |
Sets the drive mode of the general-purpose I/O (GPIO) pin. The drive mode specifies whether the pin is configured as an input or an output, and determines how values are driven onto the pin.
An enumeration value that specifies drive mode to use for the GPIO pin. The drive mode specifies whether the pin is configured as an input or an output, and determines how values are driven onto the pin.
The following exceptions can be thrown by this method:
The GPIO pin does not support the specified drive mode.
The pin is open in shared read-only mode. Close the pin and reopen it in exclusive mode to change the drive mode of the pin.
GpioPinDriveMode, GpioPin.GetDriveMode
lowLevel