Sdílet prostřednictvím


GpioController.IsPinModeSupported(Int32, PinMode) Metoda

Definice

Zkontroluje, jestli pin kód podporuje konkrétní režim.

public bool IsPinModeSupported (int pinNumber, System.Device.Gpio.PinMode mode);
public virtual bool IsPinModeSupported (int pinNumber, System.Device.Gpio.PinMode mode);
member this.IsPinModeSupported : int * System.Device.Gpio.PinMode -> bool
abstract member IsPinModeSupported : int * System.Device.Gpio.PinMode -> bool
override this.IsPinModeSupported : int * System.Device.Gpio.PinMode -> bool
Public Function IsPinModeSupported (pinNumber As Integer, mode As PinMode) As Boolean
Public Overridable Function IsPinModeSupported (pinNumber As Integer, mode As PinMode) As Boolean

Parametry

pinNumber
Int32

Číslo špendlíku v číselném schématu ovladače.

mode
PinMode

Režim, který chcete zkontrolovat.

Návraty

Stav, pokud pin podporuje režim.

Platí pro