Updated Commands (markdown)

Michael Ingraham 2019-09-11 10:22:45 -04:00
parent 22b7fbc78d
commit 6d71f65e67
1 changed files with 4 additions and 4 deletions

@ -229,10 +229,10 @@ Rule\<x\><a id="Rule"></a>|**6.1.0**<BR>There are 3 separate rule sets, each wit
RuleTimer\<x\><a id="RuleTimer"></a>|Up to eight timers to be used as countdown event (x = `1..8`)<BR>`0..32766` = set countdown rule timer in seconds
Mem\<x\><a id="Mem"></a>|Manage up to 5 variables stored on flash (x = `1..5`)<BR>`Mem` returns all current values. `Mem<x>` returns the variable's current value.<BR>`<value>` = store a string value in a variable<BR>`"` = clear stored value in Mem\<x\>
Var\<x\><a id="Var"></a>|Manage up to 5 variables stored in memory (x = `1..5`)<BR>`Var` returns all current values. `Var<x>` returns the variable's current value.<BR>`<string>` = store a string value in a variable<BR>`"` = clear stored value in Var\<x\>
Add\<x\><a id="Add"></a>|`<value>` = add value to Var\<x\> ([example](Rule-Cookbook/_edit#arithmetic-commands-to-be-used-with-vars))
Sub\<x\><a id="Sub"></a>|`<value>` = subtract value to Var\<x\> ([example](Rule-Cookbook/_edit#arithmetic-commands-to-be-used-with-vars))
Mult\<x\><a id="Mult"></a>|`<value>` = multiply value to Var\<x\> ([example](Rule-Cookbook/_edit#arithmetic-commands-to-be-used-with-vars))
Scale\<x\><a id="Scale"></a>|Scale value from a low and high limit to another low and high limits and save in Var\<x\> ([example](Rule-Cookbook/_edit#arithmetic-commands-to-be-used-with-vars))<BR>`v` = value: the number to scale<BR>`fl` = fromLow: the lower bound of the values current range<BR>`fh` = fromHigh: the upper bound of the values current range<BR>`tl` = toLow: the lower bound of the values target range<BR>`th` = toHigh: the upper bound of the values target range
Add\<x\><a id="Add"></a>|`<value>` = add value to Var\<x\> ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))
Sub\<x\><a id="Sub"></a>|`<value>` = subtract value to Var\<x\> ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))
Mult\<x\><a id="Mult"></a>|`<value>` = multiply value to Var\<x\> ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))
Scale\<x\><a id="Scale"></a>|Scale value from a low and high limit to another low and high limits and save in Var\<x\> ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))<BR>`v` = value: the number to scale<BR>`fl` = fromLow: the lower bound of the values current range<BR>`fh` = fromHigh: the upper bound of the values current range<BR>`tl` = toLow: the lower bound of the values target range<BR>`th` = toHigh: the upper bound of the values target range
CalcRes<a id="CalcRes"></a>|**6.4.0**<BR>Current calculation resolution<BR>`0..7` = set number of decimal places to be used in `Add`, `Sub`, `Mult` and `Scale`
### Timers