From f11e31d671a67f4cdbc312ad256e0e4cbc84eddb Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Fri, 28 Jan 2022 03:59:22 +0300 Subject: [PATCH] sinowealth: add some hidden lighting types These are not available in Glorious software. --- src/driver-sinowealth.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/driver-sinowealth.c b/src/driver-sinowealth.c index 205d2ffd..cbd8bcb2 100644 --- a/src/driver-sinowealth.c +++ b/src/driver-sinowealth.c @@ -75,7 +75,9 @@ enum rgb_effect { RGB_BREATHING7 = 0x3, /* breathing with seven user-defined colors */ RGB_TAIL = 0x4, RGB_BREATHING = 0x5, /* Full RGB breathing. */ + RGB_CONSTANT = 0x6, /* Each LED gets its own static color. Not available in Glorious software. */ RGB_RAVE = 0x7, + RGB_RANDOM = 0x8, /* Randomly change colors. Not available in Glorious software. */ RGB_WAVE = 0x9, RGB_BREATHING1 = 0xa, /* Single color breathing. */ @@ -130,7 +132,9 @@ struct sinowealth_config_report { */ uint8_t tail_mode; uint8_t breathing_mode; - uint8_t unknown3[32]; + uint8_t constant_color_mode; + struct sinowealth_rbg8 constant_color_colors[6]; + uint8_t unknown3[13]; /* 0x10/20/30/40 - brightness * 0x1/2/3 - speed */