You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support non-standard colour order for HUB75 matrix #228
I got a HUB75 matrix off AliExpress, but the colour order is wrong. Is there a way change it ? I'm using a MatrixPortalS3 so I can't just reshuffle the wires
To Reproduce Bug
Just flash WLED and run the default preset. The colour turns out to be purple instead of yellow.
Expected Behavior
The colour order should be R->G->B
Install Method
Self-Compiled or other
What version/release of MM WLED?
Latest build from actions page
Which microcontroller/board are you seeing the problem on?
Hello, here is the solution I found for my Lyson P4 64x64 LED matrix with colors inverted. This issue could probably be resolved more cleanly using a compilation option for the Matrix Portal S3 and modifying bus_manager.cpp for matrices that do not have a standard color order...
I modified wled00/bus_manager.cpp as follows:
#if defined(ARDUINO_ADAFRUIT_MATRIXPORTAL_ESP32S3) // MatrixPortal ESP32-S3
// https://www.adafruit.com/product/5778
USER_PRINTLN("MatrixPanel_I2S_DMA - Matrix Portal S3 config");
//mxconfig.gpio.r1 = 42;
//mxconfig.gpio.g1 = 41;
//mxconfig.gpio.b1 = 40;
//mxconfig.gpio.r2 = 38;
//mxconfig.gpio.g2 = 39;
//mxconfig.gpio.b2 = 37;
// PIN inversion to correct color inversion if your matrix display Blue as Red, Green as Blue and Red as Green
// RGB -> BRG
mxconfig.gpio.r1 = 40; // Red pin is now assigned to GPIO 40 (origanly assigned to blue)
mxconfig.gpio.g1 = 42; // Green pin is now assigned to GPIO 42 (origanlly assigned to red)
mxconfig.gpio.b1 = 41; // Blue pin is now assigned to GPIO 41 (origanly assigned to green)
mxconfig.gpio.r2 = 37; // Red pin is now assigned to GPIO 37 (origanly assigned to blue)
mxconfig.gpio.g2 = 38; // Green pin is now assigned to GPIO 38 (origanlly assigned to red)
mxconfig.gpio.b2 = 39; // Blue pin is now assigned to GPIO 39 (origanly assigned to green)
There is no such thing as color order for Hub75, only panels that do not match the spec as pins in hub75 are supposed to be assigned to given colours.
I am aware there are some panels however on sale that are "broken" with the LEDs connected to the wrong pins on the hub75 connector. This could be compensated for in WLED-MM
Activity
nanostra commentedon Mar 18, 2025
Hello, same issue for me, with Matrix Portal S3 + Lyson Matrix 64x64 .
AlieE Link
nanostra commentedon Mar 19, 2025
Hello, here is the solution I found for my Lyson P4 64x64 LED matrix with colors inverted. This issue could probably be resolved more cleanly using a compilation option for the Matrix Portal S3 and modifying bus_manager.cpp for matrices that do not have a standard color order...
I modified wled00/bus_manager.cpp as follows:
[-]Wrong colour order for HUB75 matrix[/-][+]Support non-standard colour order for HUB75 matrix[/+]netmindz commentedon Sep 20, 2025
There is no such thing as color order for Hub75, only panels that do not match the spec as pins in hub75 are supposed to be assigned to given colours.
I am aware there are some panels however on sale that are "broken" with the LEDs connected to the wrong pins on the hub75 connector. This could be compensated for in WLED-MM