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

simple example NEO_GRB won't work #390

Open
YufeiJ1ao opened this issue May 19, 2024 · 2 comments
Open

simple example NEO_GRB won't work #390

YufeiJ1ao opened this issue May 19, 2024 · 2 comments

Comments

@YufeiJ1ao
Copy link

  • Arduino board: arduino leonardo

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.19 (Windows store 1.8.57.0)

  • List the steps to reproduce the problem below

When running Adafruit Neopixel simple example, the LED light stripe was flashing
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
287382375785323383

When change NEO_GRB to NEO_GRBW the colour turns normal
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRBW + NEO_KHZ800);
111878991266611730

Is it possible to start a pull request to make a change?

@hlcm0
Copy link

hlcm0 commented Jul 1, 2024

This is probably because your led strip type is RGBW, which need 4 bytes of data for each pixel. So you should use "GRBW" rather than "GRB". "GRB" is for ordinary RGB strips.

@caternuson
Copy link

Agree, sounds like you have RGBW NeoPixels with the color order being GRBW. Needing to change the code to match the NeoPixels being used is expected and is a necessary step.

When change NEO_GRB to NEO_GRBW the colour turns normal

It all works as expected once the necessary code change has been made?

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

No branches or pull requests

3 participants