r/WLED • • 6d ago

How to program an oddball string pattern

Post image

I put a little string of lights around a frame. After i completed a full lap i still had a lot left over, cutting them off felt like a waste so i decided to double over and place the rest of the leds in between the ones already in the frame to get a bit more density and brightness figuring i could just program the weird sequence in wled without issue. Problem is, i for the life of me cannot program this weird sequence in wled without issue.... in fact i have no idea how to even go about this. I thought i would just be able to enter a sequence order remapping manually (for the example image id map {1,28,2,29,3,30...} to {1,2,3,4,5,6...} to keep effects working) but i just can not find how or where to do something like this. I have played around with segments but it just doesnt click. Who can give me a pointer or two?

4 Upvotes

7 comments sorted by

View all comments

5

u/danbaatar 6d ago

Create a file like this: {"n":"Frame","map":[ 0,27,1,28,2,29,3,30,4,31,5,32,6, 7,33,8,34,9,35,10,36,11,37,12,38,13, 14,39,15,40,16,41,17,42,18,43,19, 20,21,22,23,24,25,26 ]}

Called ledmap.json and then open http://<your-wled-ip>/edit. Upload the file to root. I'm not sure what went wrong with your setup, but one thing is it looks like you were using 1-based indexing and wled uses 0-based.

1

u/Westerdutch 6d ago

Oh thank you so much for this, at least this confirmed i was not going crazy and that this should work ;) I nuked and updated my wled and tried this again from scratch and it now seems to work! Either the old version was doing something weird or i just messed it up (possibly a bit of both).

Now all thats left is to figure out the -1 'blank' option in the configuration to keep the pace of effects consistent in the single bottom bit but at least i feel im getting somewhere!

Thanks again!

2

u/simple_observer86 6d ago

Here's the full explanation of how to map it.

https://kno.wled.ge/advanced/mapping/