Skip to content

Support changing colour order #14

Closed

Description

@mouldybread

Hello, thank you for the great software.

I'd like to be able to change the order of the colour as my strip is RBG BRG instead of GRB.

Is it possible to (easily) do this in the source code?

Activity

  1. Aircoookie commented on Apr 22, 2018

    @Aircoookie
    Member

    Hi, I'm happy that you like my project!

    You can change the colour order from GRB (the default for most WS2812B) to RGB by un-commenting line 7 in NbpWrapper.h so it reads "#define SWAPRG".

    If your order is really RBG (I've never heard of strips using this order) you can try if the underlying NeoPixelBus library supports it. In that case, replace line 22 "#define PIXELFEATURE3 NeoRgbFeature" with "#define PIXELFEATURE3 NeoRbgFeature". (line 7 still has to be un-commented). I don't know whether your colour order is supported by NeoPixelBus, though.

  2. mouldybread commented on Apr 22, 2018

    @mouldybread
    Author

    Uncommented line 7 and changed line 22 to Brg. Works perfectly, thank you so much!

    I have around 573 pixels driven by three Wemos D1s running WLED. Looks amazing.
    Incidentally the strip ended up being BRG, I will edit the original post accordingly.

  3. added a commit that references this issue on Apr 8, 2020
  4. added a commit that references this issue on May 4, 2020
  5. added a commit that references this issue on May 28, 2020
  6. added a commit that references this issue on Dec 21, 2020
  7. added a commit that references this issue on Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions