GpioController.Read Method
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.
Read(Int32) |
Reads the current value of a pin. |
Read(Span<PinValuePair>) |
Read the given pins with the given pin numbers. |
Reads the current value of a pin.
C#
public System.Device.Gpio.PinValue Read (int pinNumber);
C#
public virtual System.Device.Gpio.PinValue Read (int pinNumber);
member this.Read : int -> System.Device.Gpio.PinValue
abstract member Read : int -> System.Device.Gpio.PinValue
override this.Read : int -> System.Device.Gpio.PinValue
Public Function Read (pinNumber As Integer) As PinValue
Public Overridable Function Read (pinNumber As Integer) As PinValue
Parameters
- pinNumber
- Int32
The pin number in the controller's numbering scheme.
Returns
The value of the pin.
Applies to
.NET IoT Libraries 2.2.0 and other versions
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |
Read the given pins with the given pin numbers.
C#
public void Read (Span<System.Device.Gpio.PinValuePair> pinValuePairs);
member this.Read : Span<System.Device.Gpio.PinValuePair> -> unit
Public Sub Read (pinValuePairs As Span(Of PinValuePair))
Parameters
- pinValuePairs
- Span<PinValuePair>
The pin/value pairs to read.
Applies to
.NET IoT Libraries 2.2.0 and other versions
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |