Wled code question

I need to change this code so the white stobe in the video flash twice real fast them a short pause then repeat. What do I needd to change. Code and video link below

{"on":true,"bri":255,"transition":0,"mainseg":0,"seg":[{"id":0,"start":0,"stop":30,"grp":1,"spc":0,"of":0,"on":true,"bri":255,"cct":127,"col":[[255,255,255],[0,0,0],[0,0,0]],"fx":23,"sx":170,"ix":255,"pal":2,"sel":false,"rev":false,"mi":false},{"id":1,"start":30,"stop":90,"grp":1,"spc":0,"of":0,"on":true,"bri":255,"cct":127,"col":[[255,0,0],[0,0,0],[0,0,0]],"fx":0,"sx":255,"ix":255,"pal":3,"sel":false,"rev":false,"mi":false},{"id":2,"start":90,"stop":150,"grp":1,"spc":0,"of":0,"on":true,"bri":255,"cct":127,"col":[[255,255,255],[0,0,0],[0,0,0]],"fx":23,"sx":170,"ix":255,"pal":2,"sel":false,"rev":false,"mi":false},{"id":3,"start":150,"stop":210,"grp":1,"spc":0,"of":0,"on":true,"bri":255,"cct":127,"col":[[8,255,0],[0,0,0],[0,0,0]],"fx":0,"sx":255,"ix":255,"pal":2,"sel":true,"rev":false,"mi":false},{"id":4,"start":210,"stop":240,"grp":1,"spc":0,"of":0,"on":true,"bri":255,"cct":127,"col":[[255,255,255],[0,0,0],[0,0,0]],"fx":23,"sx":170,"ix":255,"pal":2,"sel":false,"rev":false,"mi":false},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}

Hello 49lone82
Post your current sketch, well formated, with comments and in so called code tags "</>" and a schematic, not a Fritzy diagram, to see how we can help.
Have a nice day and enjoy coding in C++.
Дайте миру шанс

Hey paulpaul, that's how wled code looks, say you're sorry. I posted a "formatted" form below. HAHahHHAHAahAHAHA!

49lone82:

You have five segment IDs.

Your code shows SEG ID:
0 is white (top edge? LEDs 0 through 30)
1 is red (right edge. LEDs 30 through 90 )
2 is white (middle cross? LEDs 90 through 150)
3 is green-ish (left edge. LEDs 150 through 210)
4 is white (bottom edge? LEDs 210 through 240)

The white segments have:
FX 23 - the ID of the special effect - wherever that comes from, I do not know
SX 170 - the speed of the effect - probably an inverse (smaller value, faster effect)

The color segments have
FX 0 - no special effect
SX 255 - speed of effect, $FF probably always on

I am guessing that the definition of "FX 23" needs to be found and make it do the same thing twice, or create an FX ?? (46?) that flashes twice.

As a fun test, try making two instances a "white" ID? That is to say, copy/paste ID 0 or 2 or 4 to see if two instances flash twice, or fails.

I super-duper formmated the colors. [rrr,ggg,bbb] for recognizing, well, red, grn, blu. Do I get a sticker?

{"on":true,
"bri":255,
"transition":0,
"mainseg":0,
"seg":[

{"id":0,
"start":0,
"stop":30,
"grp":1,
"spc":0,
"of":0,
"on":true,
"bri":255,
"cct":127,
"col":[[255,255,255],[0,0,0],[0,0,0]],
"fx":23,
"sx":170,
"ix":255,
"pal":2,
"sel":false,
"rev":false,
"mi":false},

{"id":1,
"start":30,
"stop":90,
"grp":1,
"spc":0,
"of":0,
"on":true,
"bri":255,
"cct":127,
"col":[[255,0,0],[0,0,0],[0,0,0]],
"fx":0,
"sx":255,
"ix":255,
"pal":3,
"sel":false,
"rev":false,
"mi":false},

{"id":2,
"start":90,
"stop":150,
"grp":1,
"spc":0,
"of":0,
"on":true,
"bri":255,
"cct":127,
"col":[[255,255,255],[0,0,0],[0,0,0]],
"fx":23,
"sx":170,
"ix":255,
"pal":2,
"sel":false,
"rev":false,
"mi":false},

{"id":3,
"start":150,
"stop":210,
"grp":1,
"spc":0,
"of":0,
"on":true,
"bri":255,
"cct":127,
"col":[[8,255,0],[0,0,0],[0,0,0]],
"fx":0,
"sx":255,
"ix":255,
"pal":2,
"sel":true,
"rev":false,
"mi":false},

{"id":4,
"start":210,
"stop":240,
"grp":1,
"spc":0,
"of":0,
"on":true,
"bri":255,
"cct":127,
"col":[[255,255,255],[0,0,0],[0,0,0]],
"fx":23,
"sx":170,
"ix":255,
"pal":2,
"sel":false,
"rev":false,
"mi":false},

{"stop":0},
{"stop":0},
{"stop":0},
{"stop":0},
{"stop":0},
{"stop":0},
{"stop":0},
{"stop":0},
{"stop":0},
{"stop":0},
{"stop":0}]}

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.