summaryrefslogtreecommitdiff
path: root/quantum/visualizer/lcd_backlight.h
diff options
context:
space:
mode:
authorjpetermans <tibcmhhm@gmail.com>2017-05-08 15:24:50 -0700
committerjpetermans <tibcmhhm@gmail.com>2017-05-08 15:24:50 -0700
commit967cf0f6d43bd05c9951c7c31190971acd0799ea (patch)
tree34ff786a7e5177c6edc48e93b69ce71132cb3cbf /quantum/visualizer/lcd_backlight.h
parent5df74f3ba73f18f6bbd13b82a3a960c86fa592e1 (diff)
parent153eb95ab208cf5563ce2fae7ec68981b64d11ce (diff)
Merge remote-tracking branch 'upstream/master' into user_led_configuration
Diffstat (limited to 'quantum/visualizer/lcd_backlight.h')
-rw-r--r--quantum/visualizer/lcd_backlight.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/visualizer/lcd_backlight.h b/quantum/visualizer/lcd_backlight.h
index dd3e37a064..14dde64a1a 100644
--- a/quantum/visualizer/lcd_backlight.h
+++ b/quantum/visualizer/lcd_backlight.h
@@ -32,6 +32,10 @@ SOFTWARE.
#define LCD_SAT(color) ((color >> 8) & 0xFF)
#define LCD_INT(color) (color & 0xFF)
+inline uint32_t change_lcd_color_intensity(uint32_t color, uint8_t new_intensity) {
+ return (color & 0xFFFFFF00) | 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);