共用方式為


ArduinoBoard.GetPinMode(Int32) 方法

定義

傳回指定針腳的目前指派

public Iot.Device.Arduino.SupportedMode GetPinMode(int pinNumber);
member this.GetPinMode : int -> Iot.Device.Arduino.SupportedMode
Public Function GetPinMode (pinNumber As Integer) As SupportedMode

參數

pinNumber
Int32

釘選要查詢的數位

傳回

來自已知模式清單的 實例 SupportedMode , (或未知模式的新實例)

備註

這與 相反 SetPinMode(Int32, SupportedMode) 。 如需使用限制,請參閱該處。

適用於