Skip to content

RGB order vs. GRB order #7

@d6y

Description

@d6y

Hello - thanks for this driver. We've been using it, and it's working really well, but for the ws2811 IC we're using we've noticed the byte order is RGB (as opposed to the GRB order).

What we've done is add a feature called rgb_order, and if set, it sends the bytes in RGB order. Otherwise, the default is GRB.

Here's the change:

BrightonRust/ws2812-spi-rs@master...rgb-byte-order

Any ideas for better ways to do this? Or are you interested in the above as a PR?

Thanks!

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