Is it possible to change pixel color order based on pixel index?

I’m working on a project where I’ve wired up several letters for a sign with 30/m WS2815’s powered by a pixelblaze in a single data line. Each of the nine letters has 100-150 pixels.

Everything is functioning normally except that I have discovered that not all my WS2815’s have the same color order. Some are RGB (purchased from Ray Wu’s aliexpres store), and some are GRB (purchased from amazon).

Does anyone know of a way to change the color order of the data line based on pixel index? I’m hoping to not have to completely replace the mismatched color order strips.

I don’t think PB can do this natively, but it would be an interesting thing to add to the mapping system.

In the meantime you can always swap the color in your render() function:

export function render(index) {
   // ...
   if (index < 60) {
     rgb(r,g,b)
   } else {
     rgb(g,r,b)
   }
}
4 Likes