共用方式為


GpioPin.Read 方法

定義

讀取一般用途 I/O (GPIO) 針腳的目前值。

public virtual System.Device.Gpio.PinValue Read ();
abstract member Read : unit -> System.Device.Gpio.PinValue
override this.Read : unit -> System.Device.Gpio.PinValue
Public Overridable Function Read () As PinValue

傳回

GPIO 針腳的目前值。 如果針腳設定為輸出,則此值是寫入釘選的最後一個值。

適用於