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>

要读取的引脚/值对。

适用于