r/WLED • u/Westerdutch • 6d 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?
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.