Struct PinValuePair
Simple wrapper for a pin/value pair.
Inherited Members
Namespace: System.Device.Gpio
Assembly: System.Device.Gpio.dll
Syntax
public readonly struct PinValuePair
Constructors
| Improve this Doc View SourcePinValuePair(Int32, PinValue)
Initializes a new instance of the PinValuePair struct.
Declaration
public PinValuePair(int pinNumber, PinValue pinValue)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pinNumber | The pin number. |
PinValue | pinValue | The pin value. |
Properties
| Improve this Doc View SourcePinNumber
The pin number.
Declaration
public readonly int PinNumber { get; }
Property Value
Type | Description |
---|---|
Int32 |
PinValue
The pin value.
Declaration
public readonly PinValue PinValue { get; }
Property Value
Type | Description |
---|---|
PinValue |
Methods
| Improve this Doc View SourceDeconstruct(out Int32, out PinValue)
Deconstructor for convenience. Allows using as a "return Tuple".
Declaration
public readonly void Deconstruct(out int pinNumber, out PinValue pinValue)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pinNumber | |
PinValue | pinValue |