GoXLd / gmmk-pro-OpenRGB

Custom Firmware for GMMK PRO rev.1 - ansi
3 stars 0 forks source link

The OpenRGB config works, but my side LED strips are stuck on a rainbow. #1

Open EuphoricPenguin opened 3 weeks ago

EuphoricPenguin commented 3 weeks ago

Hey, I wanted to say that I found it pretty easy to use your config with some of the linked resources to build and flash my keyboard, and I can confirm that all of the under-key lighting is working as intended in OpenRGB. Still, I am unable to control my side LED strips, and they are stuck on a rainbow pattern that doesn't really match the vibe I'm going for. Do you know why that might be the case and what I could do to fix it?

EuphoricPenguin commented 3 weeks ago

PXL_20241028_033508510

GoXLd commented 3 weeks ago

Hey, thank you so much for your comment. 👍

If you want to change the backlight color, you need to modify the RGB codes in one of two files (depending on what you're using, but the codes are always located in keymap.c):

qmmk_pro_VIA /keymap.c 63-81 lines

// Left side
    rgb_matrix_set_color(67, 237, 18, 26);   // Left LED 01 rgb(237,18,26)
    rgb_matrix_set_color(70, 237, 18, 26);   // Left LED 02 rgb(237,18,26)
    rgb_matrix_set_color(73, 237, 18, 26);   // Left LED 03 rgb(237,18,26)
    rgb_matrix_set_color(76, 255, 255, 255); // Left LED 04 rgb(255,255,255)
    rgb_matrix_set_color(80, 255, 255, 255); // Left LED 05 rgb(255,255,255)
    rgb_matrix_set_color(83, 1, 12, 62);         // Left LED 06 rgb(1,12,62)
    rgb_matrix_set_color(87, 1, 12, 62);         // Left LED 07 rgb(1,12,62)
    rgb_matrix_set_color(91, 1, 12, 62);         // Left LED 08 rgb(1,12,62)

    // Right side
    rgb_matrix_set_color(68, 237, 18, 26);   // Right LED 12    rgb(237,18,26)
    rgb_matrix_set_color(71, 237, 18, 26);   // Right LED 13    rgb(237,18,26)
    rgb_matrix_set_color(74, 237, 18, 26);   // Right LED 14    rgb(237,18,26)
    rgb_matrix_set_color(77, 255, 255, 255); // Right LED 15    rgb(255,255,255)
    rgb_matrix_set_color(81, 255, 255, 255); // Right LED 16    rgb(255,255,255)
    rgb_matrix_set_color(84, 1, 12, 62);         // Right LED 17    rgb(1,12,62)
    rgb_matrix_set_color(88, 1, 12, 62);         // Right LED 18    rgb(1,12,62)
    rgb_matrix_set_color(92, 1, 12, 62);         // Right LED 19    rgb(1,12,62)

In qmmk_pro_OpenRGB /keymap.c

lines 144-163


void rgb_matrix_indicators_user(void) {
        // Left side rainbow
        rgb_matrix_set_color(67, 255,   0,   0);    // Left LED 01
        rgb_matrix_set_color(70, 255, 127,   0);    // Left LED 02
        rgb_matrix_set_color(73, 255, 255,   0);    // Left LED 03
        rgb_matrix_set_color(76,   0, 255,   0);    // Left LED 04
        rgb_matrix_set_color(80,   0,   0, 255);    // Left LED 05
        rgb_matrix_set_color(83,  46,  43,  95);    // Left LED 06
        rgb_matrix_set_color(87, 139,   0, 255);    // Left LED 07
        rgb_matrix_set_color(91, 255, 255, 255);    // Left LED 08

        // Right side rainbow
        rgb_matrix_set_color(68, 255,   0,   0);    // Right LED 12
        rgb_matrix_set_color(71, 255, 127,   0);    // Right LED 13
        rgb_matrix_set_color(74, 255, 255,   0);    // Right LED 14
        rgb_matrix_set_color(77,   0, 255,   0);    // Right LED 15
        rgb_matrix_set_color(81,   0,   0, 255);    // Right LED 16
        rgb_matrix_set_color(84,  46,  43,  95);    // Right LED 17
        rgb_matrix_set_color(88, 139,   0, 255);    // Right LED 18
        rgb_matrix_set_color(92, 255, 255, 255);    // Right LED 19

Thank you and have a nice day!

EuphoricPenguin commented 3 weeks ago

Do you know if there is a way to make them accessible from OpenRGB, like the individual key lights?

GoXLd commented 3 weeks ago

I had the same issue with OpenRGB. Since OpenRGB's library doesn’t include a map for the side lighting LEDs, the only solution is to set static colors of your choice before compiling the firmware, specifying the color codes you need. Unfortunately, the side lighting remains static and unchangeable.