Table of Contents

Struct PinValuePair

Namespace
System.Device.Gpio
Assembly
System.Device.Gpio.dll

Simple wrapper for a pin/value pair.

public readonly struct PinValuePair
Inherited Members

Constructors

PinValuePair(int, PinValue)

Initializes a new instance of the PinValuePair struct.

public PinValuePair(int pinNumber, PinValue pinValue)

Parameters

pinNumber int

The pin number.

pinValue PinValue

The pin value.

Properties

PinNumber

The pin number.

public int PinNumber { get; }

Property Value

int

PinValue

The pin value.

public PinValue PinValue { get; }

Property Value

PinValue

Methods

Deconstruct(out int, out PinValue)

Deconstructor for convenience. Allows using as a "return Tuple".

public void Deconstruct(out int pinNumber, out PinValue pinValue)

Parameters

pinNumber int
pinValue PinValue