summaryrefslogtreecommitdiffstats
path: root/quantum/visualizer
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-04-22 11:47:45 +0200
committerFred Sundvik <fsundvik@gmail.com>2017-06-23 23:34:16 +0200
commitda19852964e5c1a03b505bcbc7e063fbd8a63fa9 (patch)
treecbd4e25837288dd5a6438701160ecd65c044fc65 /quantum/visualizer
parentff49259a1a965f13761d8f1dda4813a2aa87d718 (diff)
downloadqmk_firmware-da19852964e5c1a03b505bcbc7e063fbd8a63fa9.tar.gz
qmk_firmware-da19852964e5c1a03b505bcbc7e063fbd8a63fa9.tar.xz
Add function for getting the LCD backlight brightness
Diffstat (limited to 'quantum/visualizer')
-rw-r--r--quantum/visualizer/lcd_backlight.c4
-rw-r--r--quantum/visualizer/lcd_backlight.h1
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) {
current_brightness = b;
lcd_backlight_color(current_hue, current_saturation, current_intensity);
}
+
+uint8_t lcd_get_backlight_brightness(void) {
+ return current_brightness;
+}
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
void lcd_backlight_init(void);
void lcd_backlight_color(uint8_t hue, uint8_t saturation, uint8_t intensity);
void lcd_backlight_brightness(uint8_t b);
+uint8_t lcd_get_backlight_brightness(void);
void lcd_backlight_hal_init(void);
void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b);