Skip to content

Commit c7d8923

Browse files
authored
Pixels more readable
1 parent f4fae19 commit c7d8923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ LedPwmOn<a class="cmnd" id="ledpwmon"></a>|`0..255` = set LED brightness when ON
469469
LedTable<a class="cmnd" id="ledtable"></a>|`0` = do not use [LED gamma correction](https://learn.adafruit.com/led-tricks-gamma-correction?view=all) *(default &laquo;6.5.0.9)*<BR>`1` = use gamma correction *(default &raquo;6.5.0.9)*
470470
MultiPWM<a class="cmnd" id="multipwm"></a><BR>SetOption68<a class="cmnd" id="setoption68"></a>|Multi-channel PWM instead of a single light<BR>`0` = Treat [PWM](#pwm) as a single light *(default)*<BR>`1` = Treat [PWM](#pwm) as separate channels. In this mode, use [`Power<x>`](#power) to turn lights on and off, and [`Channel<x>`](#channel) to change the value of each channel.<BR>[`Color`](#color) still works to set all channels at once.<BR>***Requires restart after change***
471471
Palette<a class="cmnd" id="palette"></a>| `0` = Clear color palette<br>`[ ...]` = Set list of colors used by `Color<1,2>` and `Scheme <2,3,4>` commands with each color separated by a space. The palette setting is not saved to flash. Use a boot-time rule such as ON System#Boot DO Palette xxxxx ENDON to set it back at each restart.
472-
Pixels<a class="cmnd" id="pixels"></a>|`1..512` = set the number of pixels in strip or ring and reset [`Rotation`](#rotation) *(applies only to addressable LEDs)*<br>**ESP32 only** `<pixels>[,<reverse>,<height>,<alternate>]`<br>`pixels` (`1..512`) set the number of pixels in strip or ring (backwards compatible with ESP8266)<br>`<reverse>` (opt, `0..1`) `1`= the leds are in reverse order (not yet implemented)<br>`<height>` (opt, default `1`) number of lines in a leds matrix<br>`<alternate>` (opt, `0..1`) `1`= lines in the matrix are in alternate order (zig-zag)<br>Returns a JSON with current values<br>Ex: `Pixels 256,0,8,1` returns<br>`{"Pixels":256,"PixelsReverse":0,"PixelsHeight":8,"PixelsAlternate":1}`
472+
Pixels<a class="cmnd" id="pixels"></a>|`1..512` = set the number of pixels in strip or ring and reset [`Rotation`](#rotation) *(applies only to addressable LEDs)*<br><br>**ESP32 only**<br>`<pixels>[,<reverse>,<height>,<alternate>]`<br>`pixels` (`1..512`) set the number of pixels in strip or ring (backwards compatible with ESP8266)<br>`<reverse>` (opt, `0..1`) `1`= the leds are in reverse order (not yet implemented)<br>`<height>` (opt, default `1`) number of lines in a leds matrix<br>`<alternate>` (opt, `0..1`) `1`= lines in the matrix are in alternate order (zig-zag)<br>Returns a JSON with current values<br><br>Example: `Pixels 256,0,8,1` returns<br>`{"Pixels":256,"PixelsReverse":0,"PixelsHeight":8,"PixelsAlternate":1}`
473473
PixelType<a class="cmnd" id="pixeltype"></a>|(ESP32 only) Set the number of channels per led in the strip, and the color order<BR>`0` = use compile-time options, like on ESP8266 (default)<BR>`1` = `GRB` (typical for WS2812)<BR>`2` = `RGB`<BR>`3` = `RBG`<BR>`4` = `BRG`<BR>`5` = `BGR`<BR>`6` = `GBR`<BR>add `8` = 4 channels strip (RGBW), default 3 channels<BR>add `16` = if `W` is sent first, default `W` is sent last<BR><BR>Examples:<BR>`1` = `GRB`<BR>`9` = `GRBW`<BR>`25` = `WGRB`
474474
PowerOnFade<a class="cmnd" id="poweronfade"></a><BR>SetOption91<a class="cmnd" id="setoption91"></a>|Enable `Fade` at boot and power on. By default fading is not enabled at boot because of stuttering caused by wi-fi connection<BR>`0` = don't Fade at startup _(default)_ <BR>`1` = Fade at startup
475475
PWMCT<a class="cmnd" id="pwmct"></a><BR>SetOption92<a class="cmnd" id="setoption92"></a>|Alternative to `Module 38`: for Cold/Warm white bulbs, enable the second PWM as CT (Color Temp) instead of Warm White, as required for Philips-Xiaomi bulbs.<BR>`0` = normal Cold/Warm PWM _(default)_ <BR>`1` = Brightness/CT PWM<BR>See [PWM CT in Lights](Lights.md#pwm-ct)

0 commit comments

Comments
 (0)