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

Make colors RGB again #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

JasperHorn
Copy link

The hardware never considered the lights to be in GRB order. However,
there was something else going on. Basically, the library is written to
always allow you to specify colors in RGB order, but it can then write
those colors to the lights in different orders (mainly RGB or GRB) and
for some reason, by default it assumes your LEDs take the colors in GRB
order.

As such, it was rewriting the RGB colors to GRB format, even though the
LEDs actually took them in RGB order, which made the colors wrong.
Writing the colors as GRB is the opposite of this, so it undoes the
change, making it seem that's the right way to specify the colors.

By just telling the library that the LEDs are taking the colors in RGB
order, you can specify the colors the way you normally do: RGB.

The hardware never considered the lights to be in GRB order. However,
there was something else going on. Basically, the library is written to
always allow you to specify colors in RGB order, but it can then write
those colors to the lights in different orders (mainly RGB or GRB) and
for some reason, by default it assumes your LEDs take the colors in GRB
order.

As such, it was rewriting the RGB colors to GRB format, even though the
LEDs actually took them in RGB order, which made the colors wrong.
Writing the colors as GRB is the opposite of this, so it undoes the
change, making it seem that's the right way to specify the colors.

By just telling the library that the LEDs are taking the colors in RGB
order, you can specify the colors the way you normally do: RGB.
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

Successfully merging this pull request may close these issues.

1 participant