Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GRB Neopixels #28

Closed
derekwheee opened this issue Jun 10, 2015 · 4 comments
Closed

Add support for GRB Neopixels #28

derekwheee opened this issue Jun 10, 2015 · 4 comments
Assignees

Comments

@derekwheee
Copy link
Contributor

The through-hole LED Neopixels use a GRB format instead of RGB. Should add an initialization param to make this work.

Something like

strip = new pixel.Strip({
    data: 6,
    length: 4,
    colorFormat: "GRB"
});
@ajfisher
Copy link
Owner

So normal strip neopixels use the same format too. I haven't seen any WS2812B 's that don't. Having said that, other LEDs can take different forms so this is a good idea. The NP library handles this but it does it in a series of #define statements that get used at object instantiation.

I'll visit this as part of #15 as we need to work through a method of attaching those objects dynamically as needed rather than all at once so things like Pin, strip type, speed, colour order etc all need to be worked out to be configurable.

@ajfisher ajfisher added this to the Multistrip support milestone Jun 11, 2015
@ajfisher ajfisher self-assigned this Jun 11, 2015
@crayneogeo
Copy link

this would be a great enhancement for people using the adafruit single neopixels!

@ajfisher
Copy link
Owner

ajfisher commented Dec 2, 2015

This is open again because need to do:

  • Document how to set this as part of the constructor for the strip.
  • Needs to be done at the per strip level as part of the Strip options when specifying the pins and lengths.

@ajfisher
Copy link
Owner

ajfisher commented Dec 5, 2015

Prep done in bb8523b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants