Change the ledmaps on the fly to work with a matrix in xlights

If you want to change the ledmaps on the fly to work with apps like xlights , then there is an easy way
Just create and save a ledmap under wled-ip/edit with the name of ledmap1.json

Then add “ledmap”:1 to your presets and call the preset

below is an example of a led map for a serpentine -style 16x16 matrix mapping

{“map”:[15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,
16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,
47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,
48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,
79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,
80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,
111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,
112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,
143,142,141,140,139,138,137,136,135,134,133,132,131,130,129,128,
144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,
175,174,173,172,171,170,169,168,167,166,165,164,163,162,161,160,
176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,
207,206,205,204,203,202,201,200,199,198,197,196,195,194,193,192,
208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,
239,238,237,236,235,234,233,232,231,230,229,228,227,226,225,224,
240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}

2 Likes

Be warned that ledmaps created in this way support about 800 entries.
More and WLED may become unstable or crash.

I was half way the 1k map and just going to share it ,thanks for the heads up

Where in the preset do you define “ledmap”:1?
I get JSON syntax errors when I try to include this.

Or do I need to be using this fork?

You can wait for official release sometime in July or use a binary from @srg74 who compiles my fork and provides binaries for various set-ups.

You can, as well, just add "ledmap":1, immediately after first curly brace { in API window. Don’t forget the comma.

1 Like

like that


led_map_example.txt (650 Bytes)

Cheers. Will give the build a go tonight.

Good luck , While i faced no issues with 512 leds please to note the caution about the 800 limit

Thanks, working and I only have 144 leds so no issue with the limit.
Mappings working well between presets. May have found another issue but taking that into the beta discussion on Discord.