GpioController.Read 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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>
要讀取的釘選/值組。