# More Segments please

**URL:** <https://wled.discourse.group/t/more-segments-please/2077>\
**Category:** Enhancements\
**Created:** [January 16, 2021, 10:37pm UTC](https://wled.discourse.group/t/more-segments-please/2077 "2021-01-16T22:37:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wipaul](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/wipaul/32/1745_2.png) [@wipaul](https://wled.discourse.group/u/wipaul)\
**Post date:** [January 16, 2021, 10:37pm UTC](https://wled.discourse.group/t/more-segments-please/2077/1 "2021-01-16T22:37:59Z")

</div>

Would be thrilled if segments could be increased to 20. I have 1000 lights installed on my deck and I want to setup segments for each 6’ section of railing. Works great up to 11 segments and then I run out. Looks awesome but I want to do it around the entire deck. Mirror effect makes it even cooler! Thanks for the fantastic program!

---

<div class="post-metadata">

**Author:** ![CrankyCoder](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/crankycoder/32/720_2.png) [@CrankyCoder](https://wled.discourse.group/u/CrankyCoder)\
**Post date:** [January 17, 2021, 2:33am UTC](https://wled.discourse.group/t/more-segments-please/2077/2 "2021-01-17T02:33:13Z")

</div>

I think this is a limitation of the hardware memory, not the code. You can try to up it in the code and recompile if you aren’t using a a bunch of memory intensive effects and using something like vixen or xlights to talk directly to the controller. Alternatively, you could add another wemos, but you would definitely need to use something external to control it all.

---

<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:** [January 17, 2021, 10:53am UTC](https://wled.discourse.group/t/more-segments-please/2077/3 "2021-01-17T10:53:47Z")

</div>

Hi!  
You can go higher with an ESP32, with an ESP8266 we are unfortunately very close to memory exhaustion and more than 12 segments aren’t really feasible/would lead to instabilities.  
With an ESP32, there are less limitations, the default max is 16 segments for that. Increasing it even further would just be a matter of raising `MAX_NUM_SEGMENTS` in the FX.h file and raising `JSON_BUFFER_SIZE` in const.h and compiling.

---

<div class="post-metadata">

**Author:** ![wipaul](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/wipaul/32/1745_2.png) [@wipaul](https://wled.discourse.group/u/wipaul)\
**Post date:** [January 17, 2021, 3:14pm UTC](https://wled.discourse.group/t/more-segments-please/2077/4 "2021-01-17T15:14:21Z")

</div>

Thanks for the advise. I’ll give that a shot.

---

<div class="post-metadata">

**Author:** ![tonyno](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tonyno/32/242_2.png) [@tonyno](https://wled.discourse.group/u/tonyno)\
**Post date:** [January 17, 2021, 5:22pm UTC](https://wled.discourse.group/t/more-segments-please/2077/5 "2021-01-17T17:22:06Z")

</div>

Some ESPs are finally out with 8 and 16M. 😉
