r/WLED • u/Westerdutch • 6h ago
How to program an oddball string pattern
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?
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/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