From bcf2aaa2b1dd02052b648e4450bbfd1a2a752614 Mon Sep 17 00:00:00 2001 From: Aircoookie Date: Sat, 29 Aug 2020 22:19:25 +0200 Subject: [PATCH] Updated JSON API (markdown) --- JSON-API.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/JSON-API.md b/JSON-API.md index d1d219b..a65b5f7 100644 --- a/JSON-API.md +++ b/JSON-API.md @@ -147,7 +147,7 @@ rev | bool | Flips the segment, causing animations to change direction. on | bool | Turns on and off the individual segment. (available since 0.10.0) bri | 0 to 255 | Sets the individual segment brightness (available since 0.10.0) mi | bool | Mirrors the segment (available since 0.10.2) -i | Array | Individual LED control. Not included in state response (available since 0.10.2) +i | Array | [Individual LED control](https://github.com/Aircoookie/WLED/wiki/JSON-API#per-segment-individual-led-control). Not included in state response (available since 0.10.2) #### Info object @@ -195,10 +195,10 @@ To set individual LEDs, use the LED index followed by its Color array. `{"seg":{"i":[0,[255,0,0], 2,[0,255,0], 4,[0,0,255]]}}` is the same as above, but leaves blank spaces between the lit LEDs. To set ranges of LEDs, use the LED start and stop index followed by its Color array. -`{"seg":{"i":[0,8,[255,0,0]]}}` sets the first eight LEDs to red. +`{"seg":{"i":[0,8,[255,0,0], 10,18,[0,0,255]]}}` sets the first eight LEDs to red, leaves out two, and sets another 8 to blue. Keep in mind that the LED indices are segment-based, so LED 0 is the first LED of the segment, not of the entire strip. Segment features, including Grouping, Spacing, Mirroring and Reverse are functional. -This feature is available in build 200829 and newer. +This feature is available in build 200829 and above.