kopia lustrzana https://github.com/Aircoookie/WLED
Updated JSON API (markdown)
rodzic
e42e71524b
commit
bcf2aaa2b1
|
@ -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.
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue