werkstrom/WLED-PixelArtConverter

Adressing "Single" generate wrong code

der-den opened this issue · 1 comments

There is a wrong zero in the pixel row. Straight in front of the first pixel:

{"on":true,"bri":128,"seg":{"id":0,"i":[0"000000","000000",

Thanks for reporting. Actually, the issue is there is missing a comma. The 0 needs to be there, not for the first command (like your example, WLED will assume startingpos 0 if omitted), but for subsequent commands. If you split an image into several commands. You can test with the examples here as well as read more about the JSON syntax for WLED. Or this simple test
{"on":true,"bri":128,"seg":{"id":0,"i":[30,[255,0,0],[255,0,0]]}} it should light up two leds red depending on what startingposition you chose.
Fixed in 1.1.0 (you can download the beta if you like)