共用方式為


ArduinoBoard.SetSystemVariable 方法

定義

多載

SetSystemVariable(SystemVariable, Int32)

更新指定的系統變數。

SetSystemVariable(SystemVariable, Int32, Int32)

更新指定的系統變數。

SetSystemVariable(SystemVariable, Int32)

更新指定的系統變數。

public bool SetSystemVariable(Iot.Device.Arduino.SystemVariable variableId, int value);
member this.SetSystemVariable : Iot.Device.Arduino.SystemVariable * int -> bool
Public Function SetSystemVariable (variableId As SystemVariable, value As Integer) As Boolean

參數

variableId
SystemVariable

要更新的變數

value
Int32

新值

傳回

True 表示成功,否則為 false,否則 (檢查記錄輸出)

例外狀況

發生通訊錯誤

適用於

SetSystemVariable(SystemVariable, Int32, Int32)

更新指定的系統變數。

public bool SetSystemVariable(Iot.Device.Arduino.SystemVariable variableId, int pinNumber, int value);
member this.SetSystemVariable : Iot.Device.Arduino.SystemVariable * int * int -> bool
Public Function SetSystemVariable (variableId As SystemVariable, pinNumber As Integer, value As Integer) As Boolean

參數

variableId
SystemVariable

要更新的變數

pinNumber
Int32

要使用的針腳號碼,如果沒有相關,則為 -1

value
Int32

新值

傳回

True 表示成功,否則為 false,否則 (檢查記錄輸出)

例外狀況

發生通訊錯誤

適用於