mirror of https://github.com/arendst/Tasmota.git
Updated Scripting Language (markdown)
parent
ff01512d04
commit
b788acc1ec
|
@ -198,7 +198,7 @@ The condition may not be enclosed in brackets
|
|||
`delay(x)` pauses x milliseconds (should be as short as possible)
|
||||
`spin(x b)` set GPIO pin value. `x` (0..16) to value `b` (0,1). Only bit 0 is used. Even values set the pin to zero and uneven values set the pin to 1
|
||||
`spinm(x m)` set GPIO pin mode. `x` (0..16) to mode `m` (input=0, output=1, input with pullup=2)
|
||||
`ws2812(array)` copies an array (defined with m:name) to the WS2812 LED chain
|
||||
`ws2812(array)` copies an array (defined with `m:vname`) to the WS2812 LED chain
|
||||
The array should be defined as long as the number of pixels. the color is coded as 24 bit RGB
|
||||
|
||||
`#name` names a subroutine, subroutines are called with `=#name`
|
||||
|
|
Loading…
Reference in New Issue