Skip to content

Commit

Permalink
[Keyboard] make Canoe Gen2 indicator configurable (#10722)
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-elmo committed Oct 23, 2020
1 parent 85f344d commit 47ce1a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion keyboards/percent/canoe_gen2/rgb_matrix_kb.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 47ce1a9

Please sign in to comment.