diff options
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/visualizer/lcd_backlight.c | 4 | ||||
| -rw-r--r-- | quantum/visualizer/lcd_backlight.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/quantum/visualizer/lcd_backlight.c b/quantum/visualizer/lcd_backlight.c index 00de3fab5..6cd996f75 100644 --- a/quantum/visualizer/lcd_backlight.c +++ b/quantum/visualizer/lcd_backlight.c | |||
| @@ -83,3 +83,7 @@ void lcd_backlight_brightness(uint8_t b) { | |||
| 83 | current_brightness = b; | 83 | current_brightness = b; |
| 84 | lcd_backlight_color(current_hue, current_saturation, current_intensity); | 84 | lcd_backlight_color(current_hue, current_saturation, current_intensity); |
| 85 | } | 85 | } |
| 86 | |||
| 87 | uint8_t lcd_get_backlight_brightness(void) { | ||
| 88 | return current_brightness; | ||
| 89 | } | ||
diff --git a/quantum/visualizer/lcd_backlight.h b/quantum/visualizer/lcd_backlight.h index 14dde64a1..172e9bac5 100644 --- a/quantum/visualizer/lcd_backlight.h +++ b/quantum/visualizer/lcd_backlight.h | |||
| @@ -39,6 +39,7 @@ inline uint32_t change_lcd_color_intensity(uint32_t color, uint8_t new_intensity | |||
| 39 | void lcd_backlight_init(void); | 39 | void lcd_backlight_init(void); |
| 40 | void lcd_backlight_color(uint8_t hue, uint8_t saturation, uint8_t intensity); | 40 | void lcd_backlight_color(uint8_t hue, uint8_t saturation, uint8_t intensity); |
| 41 | void lcd_backlight_brightness(uint8_t b); | 41 | void lcd_backlight_brightness(uint8_t b); |
| 42 | uint8_t lcd_get_backlight_brightness(void); | ||
| 42 | 43 | ||
| 43 | void lcd_backlight_hal_init(void); | 44 | void lcd_backlight_hal_init(void); |
| 44 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b); | 45 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b); |
