Updated Scripting Language (markdown)

Michael Ingraham 2019-07-29 10:24:01 -04:00
parent ff01512d04
commit b788acc1ec
1 changed files with 1 additions and 1 deletions

@ -198,7 +198,7 @@ The condition may not be enclosed in brackets
`delay(x)` pauses x milliseconds (should be as short as possible) `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 `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) `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 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` `#name` names a subroutine, subroutines are called with `=#name`