diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-07-09 17:46:51 +0300 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-07-10 09:01:59 -0400 |
commit | 2251560256ff1a139178dc80b18dd8ef1d8e83d6 (patch) | |
tree | 51f39e49e40dc3cfa2bafeff51c32d992f1d10f5 /quantum/visualizer/lcd_backlight_keyframes.c | |
parent | f3c113fb5a5ea89762b5c51d5d182093f6fb999d (diff) | |
download | qmk_firmware-2251560256ff1a139178dc80b18dd8ef1d8e83d6.tar.gz qmk_firmware-2251560256ff1a139178dc80b18dd8ef1d8e83d6.zip |
Clarify naming between LCD_BACKLIGHT and LED_BACKLIGHT
Diffstat (limited to 'quantum/visualizer/lcd_backlight_keyframes.c')
-rw-r--r-- | quantum/visualizer/lcd_backlight_keyframes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/visualizer/lcd_backlight_keyframes.c b/quantum/visualizer/lcd_backlight_keyframes.c index 8436d4e3d..8c402baf6 100644 --- a/quantum/visualizer/lcd_backlight_keyframes.c +++ b/quantum/visualizer/lcd_backlight_keyframes.c | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include "lcd_backlight_keyframes.h" | 17 | #include "lcd_backlight_keyframes.h" |
18 | 18 | ||
19 | bool backlight_keyframe_animate_color(keyframe_animation_t* animation, visualizer_state_t* state) { | 19 | bool lcd_backlight_keyframe_animate_color(keyframe_animation_t* animation, visualizer_state_t* state) { |
20 | int frame_length = animation->frame_lengths[animation->current_frame]; | 20 | int frame_length = animation->frame_lengths[animation->current_frame]; |
21 | int current_pos = frame_length - animation->time_left_in_frame; | 21 | int current_pos = frame_length - animation->time_left_in_frame; |
22 | uint8_t t_h = LCD_HUE(state->target_lcd_color); | 22 | uint8_t t_h = LCD_HUE(state->target_lcd_color); |
@@ -49,7 +49,7 @@ bool backlight_keyframe_animate_color(keyframe_animation_t* animation, visualize | |||
49 | return true; | 49 | return true; |
50 | } | 50 | } |
51 | 51 | ||
52 | bool backlight_keyframe_set_color(keyframe_animation_t* animation, visualizer_state_t* state) { | 52 | bool lcd_backlight_keyframe_set_color(keyframe_animation_t* animation, visualizer_state_t* state) { |
53 | (void)animation; | 53 | (void)animation; |
54 | state->prev_lcd_color = state->target_lcd_color; | 54 | state->prev_lcd_color = state->target_lcd_color; |
55 | state->current_lcd_color = state->target_lcd_color; | 55 | state->current_lcd_color = state->target_lcd_color; |
@@ -60,14 +60,14 @@ bool backlight_keyframe_set_color(keyframe_animation_t* animation, visualizer_st | |||
60 | return false; | 60 | return false; |
61 | } | 61 | } |
62 | 62 | ||
63 | bool backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state) { | 63 | bool lcd_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state) { |
64 | (void)animation; | 64 | (void)animation; |
65 | (void)state; | 65 | (void)state; |
66 | lcd_backlight_hal_color(0, 0, 0); | 66 | lcd_backlight_hal_color(0, 0, 0); |
67 | return false; | 67 | return false; |
68 | } | 68 | } |
69 | 69 | ||
70 | bool backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state) { | 70 | bool lcd_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state) { |
71 | (void)animation; | 71 | (void)animation; |
72 | (void)state; | 72 | (void)state; |
73 | lcd_backlight_color(LCD_HUE(state->current_lcd_color), | 73 | lcd_backlight_color(LCD_HUE(state->current_lcd_color), |