SK6812 RGBW LED Support

Yes, I found this setting after I created my post.
And I am sorry, I said Pixelblaze does not support RGBW strips. It does!

It does work but as far as brightness consideration, it is about the same
as other 3 different strips I tested for this project.
Unfortunately brightness is not enough.

But I did created rgbw2rgb remapping function.
And it works with much higher brightness.
Tomorrow I will test my creation for “wife acceptance” hopping
this will work for her as well.
Here is my creation.
It is not really elegant (I think SW person can do much better job)
but it works:


// RGBW to RGB re-mapping
function rgbw2rgb(r, g, b, w, index)
{
  Idx = (index % 4)
  
  if (0 == Idx)
  {
    G = g
    R = r
    B = b
  }
  else if (1 == Idx)
  {
    G = w
    R = g
    B = r
  }
  else if (2 == Idx)
  {
    G = b
    R = w
    B = g
  }
  else if (3 == Idx)
  {
    G = r
    R = b
    B = w
  }

  rgb(R, G, B)
}

//---------------------------------------------------

export function beforeRender(delta)
{

}

//---------------------------------------------------

export function render(index)
{
  r = 1
  g = 0.4
  b = 0
  w = 0.4
  
  //rgb(r,g,b)
  
  rgbw2rgb(r, g, b, w, index)
}

//---------------------------------------------------

So, now I am able to control all 4 LEDs
Yes, this way strip eats more power but temperature is a bit
higher then body temp.