GpioPin.GetPinMode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得一般用途 I/O (GPIO) 針腳的目前針腳模式。 針腳模式會指定針腳是否設定為輸入或輸出,並決定如何將值導向至針腳。
public virtual System.Device.Gpio.PinMode GetPinMode ();
abstract member GetPinMode : unit -> System.Device.Gpio.PinMode
override this.GetPinMode : unit -> System.Device.Gpio.PinMode
Public Overridable Function GetPinMode () As PinMode
傳回
列舉值,表示 GPIO 針腳的目前針腳模式。 針腳模式會指定針腳是否設定為輸入或輸出,並決定如何將值導向至針腳。