aboutsummaryrefslogtreecommitdiff
path: root/keyboards/percent
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-10-13 05:00:56 +1100
committerGitHub <noreply@github.com>2024-10-12 19:00:56 +0100
commit9884e4982be942a98cf5bca9360d20cc3fca3e9d (patch)
tree2ec0af3864f1839a8896b25090f8fa7024394fdc /keyboards/percent
parent5478051d7470efb32783b1c4080a2c3f24ce3c24 (diff)
Rename RGB/HSV structs: keyboard-level code (#24476)
Diffstat (limited to 'keyboards/percent')
-rw-r--r--keyboards/percent/canoe_gen2/rgb_matrix_kb.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc b/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc
index 94ff62b3a8..3839fbfe4f 100644
--- a/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc
+++ b/keyboards/percent/canoe_gen2/rgb_matrix_kb.inc
@@ -22,8 +22,8 @@ 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);
+ hsv_t hsv = rgb_matrix_config.hsv;
+ rgb_t 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);
@@ -43,21 +43,21 @@ bool effect_runner_indicator(effect_params_t* params, i_f effect_func) {
rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
} else {
RGB_MATRIX_TEST_LED_FLAGS();
- RGB rgb = hsv_to_rgb(effect_func(rgb_matrix_config.hsv, (i - 74), time));
+ rgb_t rgb = hsv_to_rgb(effect_func(rgb_matrix_config.hsv, (i - 74), time));
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
}
}
return rgb_matrix_check_finished_leds(led_max);
}
-static HSV indicator_gradient_math(HSV hsv, uint8_t i, uint8_t time) {
+static hsv_t indicator_gradient_math(hsv_t hsv, uint8_t i, uint8_t time) {
hsv.h = g_led_config.point[i].x - time;
return hsv;
}
bool indicator_gradient(effect_params_t* params) { return effect_runner_indicator(params, &indicator_gradient_math); }
-static HSV indicator_cycle_all_math(HSV hsv, uint8_t i, uint8_t time) {
+static hsv_t indicator_cycle_all_math(hsv_t hsv, uint8_t i, uint8_t time) {
hsv.h = time;
return hsv;
}