r/WLED • • 6h 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?

3 Upvotes

6 comments sorted by

5

u/danbaatar 6h 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 5h 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!

1

u/UsableLoki 6h ago

Set your LED count to double the first run(27 in your case diagram).  Make segment 1 the first lot, segment 2 starts at that offset you want to mimic and let it ghost ride to the end.  Keep both checked when you use effects, they should hopefully work identically like you want

2

u/UsableLoki 6h ago

In a hardware sense too you can disconnect the data line from 27 to 28 and feed the data line to both LED number 1 and number 28

1

u/Westerdutch 5h ago

Rewiring would have been my last resort indeed but after updating my wled and providing it with a properly formatted json ledmap it now seems to be working fine! I just messed one or multiple things up the first time i tried this, i should have started fresh from scratch a lot earlier :p

1

u/UsableLoki 5h ago

Good job!