-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Ability to change color order #77
Comments
I had a quick look yesterday, it should be possible. As soon as I'm done with the new UI I'll take a closer look at this topic. However, this may take some time because I currently can not spend much time. |
Unfortunately I was too optimistic here, I use FastLED to control the LEDs, this lib does not allow me to set the color order at runtime (FastLED/FastLED#282 (comment)). I have to compile every color order and the memory of the ESP8266 doesn't support that, it's just too small. |
However, you can create a custom version where you only need to adjust the code in three places. For GRB it would look like this: // Matrix Color Correction
if (userLEDCorrection != UncorrectedColor)
{
FastLED.addLeds<WS2812B, MATRIX_PIN, GRB>(leds, NUMMATRIX).setCorrection(userLEDCorrection);
}
else if (userColorTemp != UncorrectedTemperature)
{
FastLED.addLeds<WS2812B, MATRIX_PIN, GRB>(leds, NUMMATRIX).setTemperature(userColorTemp);
}
else
{
int *rgbArray = GetUserCutomCorrection();
FastLED.addLeds<WS2812B, MATRIX_PIN, GRB>(leds, NUMMATRIX).setCorrection(matrix->Color(rgbArray[0], rgbArray[1], rgbArray[2]));
} |
Which color order do you need? |
I'm pretty sure I need the WS2812B order |
My LEDs seem to have a different color order than what PixelIt is sending. WLED has the option to change it.
The text was updated successfully, but these errors were encountered: