Mcp23xxx.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 value of a pin. |
Read(Span<PinValuePair>) |
Reads the value of a set of pins |
Reads the value of a pin.
C#
protected override System.Device.Gpio.PinValue Read (int pinNumber);
override this.Read : int -> System.Device.Gpio.PinValue
Protected Overrides Function Read (pinNumber As Integer) As PinValue
Parameters
- pinNumber
- Int32
The pin number.
Returns
High or low pin value.
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 |
Reads the value of a set of pins
C#
protected void Read (Span<System.Device.Gpio.PinValuePair> pinValuePairs);
override this.Read : Span<System.Device.Gpio.PinValuePair> -> unit
Protected Sub Read (pinValuePairs As Span(Of PinValuePair))
Parameters
- pinValuePairs
- Span<PinValuePair>
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 |