From 47ce1a9ed055da1460388693fb519af298d1aadd Mon Sep 17 00:00:00 2001 From: kb-elmo Date: Fri, 23 Oct 2020 23:12:03 +0200 Subject: [PATCH] [Keyboard] make Canoe Gen2 indicator configurable (#10722) --- keyboards/percent/canoe_gen2/rgb_matrix_kb.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc b/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc index 7a49edd3b..df0a0b15c 100644 --- a/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc +++ b/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc @@ -22,12 +22,14 @@ RGB_MATRIX_EFFECT(indicator_static) #ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS static bool indicator_static(effect_params_t* params) { + HSV hsv = rgb_matrix_config.hsv; + RGB rgb = hsv_to_rgb(hsv); RGB_MATRIX_USE_LIMITS(led_min, led_max); for (uint8_t i = led_min ; i < 74; i++) { rgb_matrix_set_color(i, 0x00, 0x00, 0x00); } for (uint8_t i = 74 ; i < led_max; i++) { - rgb_matrix_set_color(i, 0xff, 0xff, 0xff); + rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); } return led_max < DRIVER_LED_TOTAL; }