For test purposes I'm trying to set up LED strips with adjustable gaps.

For test purposes I’m trying to set up LED strips with adjustable gaps.
Beginning with 144 LEDs/m, I want to set GAP=1 for 72/m, GAP = 2 for 48/m, and so on.
I’m wondering what is the best way to do this.

My sketch is somewhat working with:
for(int active_Led = 0; active_Led < NUM_LEDS; active_Led = active_Led + (GAP+1))
Full sketch here:
http://pastebin.com/pYJnP9v9

After seeing the sequence of numbers you showed on lines 7-14 of your code I was then thinking I might see something like: 144 / (GAP + 1) in your code somewhere.
But I don’t think I’m following what you’re looking for, or maybe looking at something backwards. [Admittedly I did not actually try to run your code which might also help me understand, but I’m falling asleep now so looking forward to better understanding your project tomorrow!]

Hi Marc,
thanks for looking into the subject. NUM_LEDS = 144 / (GAP + 1) would just shorten the strip.
I just try to skip every other, or two, or three LED and so on.
Alternatively I could use a tape to make them blind but that’s against my honor code :wink: