summaryrefslogtreecommitdiffstats
path: root/keyboards/percent/canoe_gen2
diff options
context:
space:
mode:
authorkb-elmo <lorwel@mailbox.org>2020-10-23 23:12:03 +0200
committerGitHub <noreply@github.com>2020-10-23 14:12:03 -0700
commit47ce1a9ed055da1460388693fb519af298d1aadd (patch)
tree2ba43a2f79a4e78f652ca3bd7dce2b1b2e65084f /keyboards/percent/canoe_gen2
parent85f344db49022ba196b4d77719652389f42cfdf8 (diff)
[Keyboard] make Canoe Gen2 indicator configurable (#10722)
Diffstat (limited to 'keyboards/percent/canoe_gen2')
-rw-r--r--keyboards/percent/canoe_gen2/rgb_matrix_kb.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc b/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc
index 7a49edd3b3..df0a0b15c2 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;
}