共用方式為


ArduinoBoard.SetPinMode(Int32, SupportedMode) 方法

定義

如果支援,請將內部針腳模式設定為指定的值。

public void SetPinMode(int pin, Iot.Device.Arduino.SupportedMode arduinoMode);
member this.SetPinMode : int * Iot.Device.Arduino.SupportedMode -> unit
Public Sub SetPinMode (pin As Integer, arduinoMode As SupportedMode)

參數

pin
Int32

要設定的釘選

arduinoMode
SupportedMode

要設定的模式

例外狀況

模式未更新,可能是因為命令未了解或韌體未知模式

備註

這個方法可供實例使用 ExtendedCommandHandler 。 使用者不應該直接呼叫此方法。 命令處理常式的責任是使用功能資料表來檢查模式是否確實受到支援

適用於