summaryrefslogtreecommitdiff
path: root/quantum/visualizer/lcd_backlight.h
diff options
context:
space:
mode:
authorAdam YH Lee <adam.yh.lee@gmail.com>2017-04-12 20:58:36 -0700
committerAdam YH Lee <adam.yh.lee@gmail.com>2017-04-12 20:58:36 -0700
commit73625a603afd14ee506d1562ef5f6a199eac62ce (patch)
tree669ed65bd1962936e13aec3f62ee375fbbe09df7 /quantum/visualizer/lcd_backlight.h
parent91b11bb4dd9a0c94fbc0feb6915acc4717357205 (diff)
parentd3301c0f8b0005738ab9aa2030d83739ffb5c4b6 (diff)
Merge branch 'master' into miuni32-OA
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);