Hello. I'm trying to to use the BlinkMscriptWriter to make a script that very slowely and evenly fades through all colours including white. Mainly I want to hit red, yellow, green, cyan, blue, purple, and white. But just having a very even fade so you can see everything in between in what I'm mainly after.
I wrote this script:
blinkm_script_line script1_lines[] = {
{ 1, {'f', 1,00,00}},
{ 1, {'t', 120,00,00}},
{ 50, {'c', 0xff,0x7e,0x59}}, // white
{ 50, {'c', 0x00,0x00,0xff}}, // blue
{ 50, {'c', 0x00,0xff,0xff}}, // cyan
{ 50, {'c', 0x00,0xff,0x00}}, // green
{ 50, {'c', 0xff,0xff,0x01}}, // yellow
{ 50, {'c', 0xff,0x00,0x00}}, // red
{ 50, {'c', 0xff,0x00,0xff}}, // purple
};
int script1_len = 9; // number of script lines above
But it doesn't work properly, it goes to the inbetween colours ok but it doesn't settle on deep red, blue, or green. I've fooled with a bunch of different settings and I had it sort of working, but it always ends up dwelling on the white for too long. Why does it do these erratic things?
Also, I'm unsure as to what the '50' is before the command. I didn't see it mentioned anywhere in the datasheet, I just used that because that's what it was on the #1 script RGB fading in the nonvol_data file.
What's the best way to create a very slow fade through all colours? I can't seem to figure it out. Thanks.
p.s. The reason why my "white" has less green and blue is to make it more neutral looking, otherwise it's a very blue white.
Reply to this question