trying to run WS2812 with RGB and GRB ??

Status
Not open for further replies.

j_dunavin

Well-known member
I am doing some testing with this library as it will be part of my MIDI controller project.
https://www.pjrc.com/non-blocking-ws2812-led-library/

Apparently this diffused neopixel LED
https://www.adafruit.com/product/1938
Has the red and green backwards from normal WS2812 strips.
The Adafruit neopixel library does have an example of how to define one or the other, but is there a way to run both in line?

Perhaps run one group off one one TX of the teensy and another group off of another TX line, with different groups of code?

My plan is to have groups of back lite switches with those diffused neo pixels (which actually tested out quite nice) and those eight segment neo pixel strips https://www.adafruit.com/product/1426 for a vu meter. I can run them all in line, but the colors of course don't match up.

thoughts?
 
I imagine there are three ways to solve the problem:

  1. Write a function that you call instead of setPixelColor that manually reverses the colors for the range of WS2812B's that use the alternate color scheme, and that function then calls setPixelColor;
  2. Have two separate neopixel strands, one that controls the normal color and the other that colors the reversed color, use different initializers to set them up;
  3. Hack the library you are using to do this transformation.

Simply transforming the colors in theory would be somewhat simple. I would imagine it would be impossible to have RGB and RGBW on the same strand, since the white pixels take more data.
 
Ya, there's no white here, just RGB.
I like the calling it out deal.
Perhaps I could call em out as Red, and Red 1 for example.
I'll try it out in my test I'm running
 
Status
Not open for further replies.
Back
Top