# Change Orientation of Matrix

**URL:** <https://wled.discourse.group/t/change-orientation-of-matrix/938>\
**Category:** Questions\
**Created:** [September 23, 2020, 8:28pm UTC](https://wled.discourse.group/t/change-orientation-of-matrix/938 "2020-09-23T20:28:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![crzykidd](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@crzykidd](https://wled.discourse.group/u/crzykidd)\
**Post date:** [September 23, 2020, 8:28pm UTC](https://wled.discourse.group/t/change-orientation-of-matrix/938/1 "2020-09-23T20:28:01Z")

</div>

I am using 8x32 matrix and I will have 4 panels hooked together to be a 3.15" wide, tall accent behind some translucent tile. Since the leds go in this order  
0,1,2,3,4,5,6,7  
15,14,13,12,11,10,9,8  
…  
1016, 1017,1018,1019,1020,1021,1022,1023,1024

I need to change the order that WLED addresses them so the effects are up and down not side to side. Is there an easy way to do this?

Thanks

---

<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 24, 2020, 11:22am UTC](https://wled.discourse.group/t/change-orientation-of-matrix/938/2 "2020-09-24T11:22:56Z")

</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.…

---

<div class="post-metadata">

**Author:** ![crzykidd](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@crzykidd](https://wled.discourse.group/u/crzykidd)\
**Post date:** [September 25, 2020, 1:58am UTC](https://wled.discourse.group/t/change-orientation-of-matrix/938/3 "2020-09-25T01:58:47Z")

</div>

Thanks this worked well. Any plans to have this added as an option in the config? Would save me having to have different source code laying around for each project.
