GpioController.Write Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Write(ReadOnlySpan<PinValuePair>) |
Write the given pins with the given values. |
Write(Int32, PinValue) |
Writes a value to a pin. |
Write(ReadOnlySpan<PinValuePair>)
Write the given pins with the given values.
public void Write (ReadOnlySpan<System.Device.Gpio.PinValuePair> pinValuePairs);
member this.Write : ReadOnlySpan<System.Device.Gpio.PinValuePair> -> unit
Public Sub Write (pinValuePairs As ReadOnlySpan(Of PinValuePair))
Parameters
- pinValuePairs
- ReadOnlySpan<PinValuePair>
The pin/value pairs to write.
Applies to
Write(Int32, PinValue)
Writes a value to a pin.
public void Write (int pinNumber, System.Device.Gpio.PinValue value);
public virtual void Write (int pinNumber, System.Device.Gpio.PinValue value);
member this.Write : int * System.Device.Gpio.PinValue -> unit
abstract member Write : int * System.Device.Gpio.PinValue -> unit
override this.Write : int * System.Device.Gpio.PinValue -> unit
Public Sub Write (pinNumber As Integer, value As PinValue)
Public Overridable Sub Write (pinNumber As Integer, value As PinValue)
Parameters
- pinNumber
- Int32
The pin number in the controller's numbering scheme.
- value
- PinValue
The value to be written to the pin.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for