Support for Different LED
TravisRoy opened this issue · 2 comments
TravisRoy commented
However, you can create a custom version where you only need to adjust the code in three places.
https://github.com/o0shojo0o/PixelIt/blob/c3429897945d4815e5970459dc6e1c4cc014d7b5/src/PixelIt.ino#L1990-L2003
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]));
}
Originally posted by @o0shojo0o in https://github.com/o0shojo0o/PixelIt/issues/77#issuecomment-945079691
TravisRoy commented
I'm pretty sure I need the WS2812B order.
github-actions commented
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days