次の方法で共有


GpioController.Read メソッド

定義

オーバーロード

Read(Int32)

ピンの現在の値を読み取ります。

Read(Span<PinValuePair>)

指定されたピン番号を使用して、指定したピンを読み取る。

Read(Int32)

ピンの現在の値を読み取ります。

public System.Device.Gpio.PinValue Read (int pinNumber);
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

パラメーター

pinNumber
Int32

コントローラーの番号付けスキームのピン番号。

戻り値

ピンの値。

適用対象

Read(Span<PinValuePair>)

指定されたピン番号を使用して、指定したピンを読み取る。

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))

パラメーター

pinValuePairs
Span<PinValuePair>

読み取るピンと値のペア。

適用対象