Updated Scripting Language (markdown)

Michael Ingraham 2019-08-16 08:08:42 -04:00
parent 8ec61abe62
commit ce771abd30
1 changed files with 1 additions and 1 deletions

@ -194,7 +194,7 @@ If you define a variable with the same name as a special variable that special v
`spin(x b)` set GPIO `x` (0..16) to value `b` (0,1). Only bit 0 of `b` is used - even values set the GPIO to `0` and uneven values set the GPIO to `1`
`spinm(x m)` set GPIO `x` (0..16) to mode `m` (input=0, output=1, input with pullup=2)
`ws2812(array)` copies an array (defined with `m:vname`) to the WS2812 LED chain. The array length should be defined as long as the number of pixels. Color is coded as 24 bit RGB.
`hsvrgb(h s v)` converts hue (0-360), saturation (0-100) and value (0-100) to RGB color
`hsvrgb(h s v)` converts hue (0..360), saturation (0..100) and value (0..100) to RGB color
`#name` names a subroutine, subroutines are called with `=#name`
`#name(param)` names a subroutines with a parameter is called with `=#name(param)`