LED Mapping, Segment Length

I have a LED strip comprised of 20 LEDs. The first 3 are not used, and in addition there are specific LEDs that are skipped and/or out of order due to the wiring.

I was able to create a mapping, which works to define the order of my LEDs, while skipping the unused ones:
{“map”:[2,3,0,5,6,7,8,9,12,13,15,16,-1,-1,-1,-1,-1]}

I have to set the LED length to be 17 (and skip first 3) for this to work. As a result, the default segment length is 17.

Is it possible to utilize my mapping, while setting the length to 12, since that is the total active LEDs?

not sure what you are asking. you can set a segment to any part and length you want. save it in a preset, apply preset at boot.

Having -1 in a ledmap (especially at the end) is something that is needed only in a special configuration. I do not think yours is such.

In the image, I set the config to skip the first 3 LEDs (circled in red).

I also had to remap part of the LED sequence: the first LED in the lighting sequence corresponds to physical position 2, the second to position 3, the third to position 0, and so on)

The LEDs circled in yellow are not part of the actual lighting and should be excluded.

Since I’m using some LEDs near the end of the strip, I had to assign the length as 17, however only 12 LEDs are actively used for lighting.

Ideally, I want to define a custom mapping that lets me both rearrange the sequence order and skip over unused LEDs, while keeping the sequence length as 12 (even if that includes LEDs from positions like 16 or 17)

Why not just cut the sections you need and solder wires between them vs that setup?

Exactly. :joy: