Skip to content

Support non-standard colour order for HUB75 matrix #228

Open

Description

@nomeat1337

What happened?

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?

ESP32-S3

Relevant log/trace output

Anything else?

Using an Adafruit Matrixportal S3.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    bug
    on Feb 28, 2025
  2. nanostra commented on Mar 18, 2025

    @nanostra

    Hello, same issue for me, with Matrix Portal S3 + Lyson Matrix 64x64 .
    AlieE Link

    • Can't find how to change PIN assignation for ESP32 HUB75 LED MATRIX PANEL...
    • Color Order Override don't work (Trying all settings with reset between each test)
    • define in my_config.h don't work #define DEFAULT_LED_COLOR_ORDER COL_ORDER_RGB
    1. Blue is Red
    2. Green is Blue
    3. Red is Green
  3. nanostra commented on Mar 19, 2025

    @nanostra

    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)
    
  4. removed
    bug
    on Sep 20, 2025
  5. changed the title [-]Wrong colour order for HUB75 matrix[/-] [+]Support non-standard colour order for HUB75 matrix[/+] on Sep 20, 2025
  6. added
    enhancement
    on Sep 20, 2025
  7. netmindz commented on Sep 20, 2025

    @netmindz
    Collaborator

    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

  8. added this to the 14.8.1 milestone on Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions