Skip to content

Commit f507156

Browse files
authored
Merge pull request tasmota#1518 from md5sum-as/rotary_script
Scripting-Language.md add rotary encoder vars
2 parents 60e70e3 + 0f537e3 commit f507156

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/Scripting-Language.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,9 @@ If a Tasmota `SENSOR` or `STATUS` or `RESULT` message is not generated or a `Var
605605
`sht[x]` = shutter position (x = 1..N) (if defined USE_SHUTTER)
606606
`gtmp` = global temperature
607607
`ghum` = global humidity
608-
`gprs` = global pressure
608+
`gprs` = global pressure
609+
`encabs[x]` = absolute position of the rotary encoder (x = 1..N)
610+
`encrel[x]` = relative position of the rotary encoder, the value will be reset after reading (x = 1..N)
609611

610612
global variables
611613
now optional binary mode, much faster and more precise, also supports arrays.

0 commit comments

Comments
 (0)