# Possible to control each LED separately

**URL:** <https://wled.discourse.group/t/possible-to-control-each-led-separately/112>\
**Category:** Enhancements\
**Created:** [February 13, 2020, 3:31pm UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112 "2020-02-13T15:31:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylwekss](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@Sylwekss](https://wled.discourse.group/u/Sylwekss)\
**Post date:** [February 13, 2020, 3:31pm UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/1 "2020-02-13T15:31:03Z")

</div>

Hello. I have a question - is it possible to control each LED separately? For example, is it possible to set a different color for 1, 25 and 50 LED? Is it planned to add such a possibility and an interactive diode management tool as [here](https://adrianotiger.github.io/Neopixel-Effect-Generator/)?

---

<div class="post-metadata">

**Author:** ![Aircoookie](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/aircoookie/32/2_2.png) [@Aircoookie](https://wled.discourse.group/u/Aircoookie)\
**Post date:** [February 14, 2020, 10:06am UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/2 "2020-02-14T10:06:43Z")

</div>

Hi! This is possible in two ways:

- With the 0.9.0 segments feauture you can set a range of LEDs (or even a single) to a different color. Right now there is a limitation to 10 segments though.
- The Hyperion UDP 0, Adalight USB, but most importantly E1.31 support allow you to drive each LED individually from 3rd party software, like LedFx or xLights.

---

<div class="post-metadata">

**Author:** ![Sylwekss](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@Sylwekss](https://wled.discourse.group/u/Sylwekss)\
**Post date:** [February 14, 2020, 3:58pm UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/3 "2020-02-14T15:58:15Z")

</div>

Thank you for the tip

---

<div class="post-metadata">

**Author:** ![mbrookes](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@mbrookes](https://wled.discourse.group/u/mbrookes)\
**Post date:** [March 30, 2020, 3:52pm UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/4 "2020-03-30T15:52:35Z")

</div>

What would it take to add support to the JSON API? Nothing fancy, just the ability to set an individual LED color. No effects, presets, palettes etc… Thanks!

---

<div class="post-metadata">

**Author:** ![huggy-d1](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/huggy-d1/32/51_2.png) [@huggy-d1](https://wled.discourse.group/u/huggy-d1)\
**Post date:** [March 30, 2020, 5:13pm UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/5 "2020-03-30T17:13:44Z")

</div>

[wled json api wiki link](https://github.com/Aircoookie/WLED/wiki/JSON-API)  
I am not 100% positive of the syntax, but I think what you are after is already there.

- Set effect to SOLID (not sure of syntax…) :  
{“effects”: [“Solid”]}
- Set effect COLOR to teal (JSON from WLED wiki) of entire LED strip (if no segments are defined)  
{“seg”:[{“col”:[[0,255,200]]}]}

Please try and post back your results.

---

<div class="post-metadata">

**Author:** ![mbrookes](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@mbrookes](https://wled.discourse.group/u/mbrookes)\
**Post date:** [March 30, 2020, 5:22pm UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/6 "2020-03-30T17:22:25Z")

</div>

Sorry, reading back I can see that what I wrote wasn’t totally clear in isolation, but only in the context of the subject, i.e. “control each LED separately”.

I’d like to set the color of each LED individually. Not necessarily one at a time - sending an array of RGB values where each value maps to each LED in the series would be fine.

---

<div class="post-metadata">

**Author:** ![mbrookes](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@mbrookes](https://wled.discourse.group/u/mbrookes)\
**Post date:** [March 30, 2020, 7:03pm UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/8 "2020-03-30T19:03:55Z")

</div>

It’ll be 200 LEDs. For want of a better analog, imagine a parking garage where taken spaces have a red LED, and free spaces have a green one.

---

<div class="post-metadata">

**Author:** ![Aircoookie](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/aircoookie/32/2_2.png) [@Aircoookie](https://wled.discourse.group/u/Aircoookie)\
**Post date:** [March 31, 2020, 12:50am UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/13 "2020-03-31T00:50:52Z")

</div>

Hi! You are not the first one to request individual LED color via JSON:

> <https://github.com/Aircoookie/WLED/issues/226>
>
> Would it be possible to add the ability to set the color of a certain LED(s) via MQTT or HTTP API?...

Right now it is not supported, but I will add it at some point.

---

<div class="post-metadata">

**Author:** ![AdamHome](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/adamhome/32/5551_2.png) [@AdamHome](https://wled.discourse.group/u/AdamHome)\
**Post date:** [August 9, 2023, 12:15am UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/14 "2023-08-09T00:15:48Z")

</div>

Hello,  
I too would like to individually control up to 200 LED’s, just want a different colour or turn off individual LED’s on a string. Is that capability there now?

---

<div class="post-metadata">

**Author:** ![ALDIY](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/aldiy/32/2716_2.png) [@ALDIY](https://wled.discourse.group/u/ALDIY)\
**Post date:** [August 9, 2023, 12:43am UTC](https://wled.discourse.group/t/possible-to-control-each-led-separately/112/15 "2023-08-09T00:43:09Z")

</div>

Yes look here [JSON API - WLED Project](https://kno.wled.ge/interfaces/json-api/#per-segment-individual-led-control)
