共用方式為


Board.ReservePin(Int32, PinUsage, Object) 方法

定義

保留特定使用量的針腳。 如果已知介面 (自動完成,亦即 GpioController) 用來開啟針腳,但可用於明確封鎖針腳,也就是 UART。

public virtual void ReservePin (int pinNumber, Iot.Device.Board.PinUsage usage, object owner);
abstract member ReservePin : int * Iot.Device.Board.PinUsage * obj -> unit
override this.ReservePin : int * Iot.Device.Board.PinUsage * obj -> unit
Public Overridable Sub ReservePin (pinNumber As Integer, usage As PinUsage, owner As Object)

參數

pinNumber
Int32

面板預設編號配置中的針腳編號

usage
PinUsage

針腳的預定用法

owner
Object

擁有針腳的類別 (使用 「this」)

例外狀況

釘選已保留

適用於