Edit

Share via


Mcp23xxx.Read Method

Definition

Overloads

Read(Int32)

Reads the value of a pin.

Read(Span<PinValuePair>)

Reads the value of a set of pins

Read(Int32)

Reads the value of a pin.

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

Read(Span<PinValuePair>)

Reads the value of a set of pins

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