共用方式為


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>

要讀取的釘選/值組。

適用於