# Segment programing extended?

**URL:** <https://wled.discourse.group/t/segment-programing-extended/857>\
**Category:** Enhancements\
**Created:** [September 5, 2020, 2:04am UTC](https://wled.discourse.group/t/segment-programing-extended/857 "2020-09-05T02:04:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![N8man](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@N8man](https://wled.discourse.group/u/N8man)\
**Post date:** [September 5, 2020, 2:04am UTC](https://wled.discourse.group/t/segment-programing-extended/857/1 "2020-09-05T02:04:31Z")

</div>

Sorry newb so if this is already possible my bad.  
Looking to make segments that would be able to utilize LEDs out of order. Like LEDs 2,3,4,5,12,13,14,15 as a segment and 6,7,8,9,10,11,22,23,24 as segment and so on. Or any combination of LEDs into a segment.

---

<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:** [September 5, 2020, 2:13pm UTC](https://wled.discourse.group/t/segment-programing-extended/857/2 "2020-09-05T14:13:44Z")

</div>

There is code for a custom LED layout. Can’t recall where, though. ☹

---

<div class="post-metadata">

**Author:** ![pille](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/pille/32/100_2.png) [@pille](https://wled.discourse.group/u/pille)\
**Post date:** [September 5, 2020, 4:20pm UTC](https://wled.discourse.group/t/segment-programing-extended/857/3 "2020-09-05T16:20:18Z")

</div>

> [@Offset start and end?](https://wled.discourse.group/t/offset-start-and-end/388//2):
>
> there’s a feature that adds a hardcoded mapping (see wled00/FX\_fcn.cpp): //enable custom per-LED mapping. This can allow for better effects on matrices or special displays //#define WLED\_CUSTOM\_LED\_MAPPING #ifdef WLED\_CUSTOM\_LED\_MAPPING //this is just an example (30 LEDs). It will first set all even, then all uneven LEDs. const uint16\_t customMappingTable[] = { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29}; //another example.…
