GpioController.IsPinModeSupported(Int32, PinMode) 方法

定义

检查引脚是否支持特定模式。

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

参数

pinNumber
Int32

控制器编号方案中的引脚编号。

mode
PinMode

要检查的模式。

返回

引脚支持模式时的状态。

适用于