diff options
author | coderkun <olli@coderkun.de> | 2017-05-06 12:19:45 +0200 |
---|---|---|
committer | coderkun <olli@coderkun.de> | 2017-05-06 12:19:45 +0200 |
commit | 49046f621bc8304c8c7ba7a065d2568f45ecc616 (patch) | |
tree | 4a1fc5d37e012502ff4732c801381eec814a2e01 /quantum/visualizer/lcd_backlight.h | |
parent | 9e7448ea89a1a88317f0acb805819af79d0a76e3 (diff) | |
parent | c5cef025ec39e67408f000825747d88c6aaa86eb (diff) | |
download | qmk_firmware-49046f621bc8304c8c7ba7a065d2568f45ecc616.tar.gz qmk_firmware-49046f621bc8304c8c7ba7a065d2568f45ecc616.zip |
Merge tag '0.5.43' into coderkun_neo2
Diffstat (limited to 'quantum/visualizer/lcd_backlight.h')
-rw-r--r-- | quantum/visualizer/lcd_backlight.h | 4 |
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); |