-api-id | -api-type |
---|---|
M:Windows.Devices.Gpio.GpioPin.Write(Windows.Devices.Gpio.GpioPinValue) |
winrt method |
Drives the specified value onto the general purpose I/O (GPIO) pin according to the current drive mode for the pin if the pin is configured as an output, or updates the latched output value for the pin if the pin is configured as an input.
The enumeration value to write to the GPIO pin.
If the GPIO pin is configured as an output, the method drives the specified value onto the pin according to the current drive mode for the pin.
If the GPIO pin is configured as an input, the method updates the latched output value for the pin. The latched output value is driven onto the pin when the configuration for the pin changes to output.
The following exceptions can be thrown by this method:
The GPIO pin is open in shared read-only mode. To write to the pin, close the pin and reopen the pin in exclusive mode.
lowLevel