diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-04-12 12:43:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 12:43:46 -0400 |
commit | e5f610b70ec124da411dd8b32c5a4de14b2bedc8 (patch) | |
tree | 85590469e36f6da98d8606d725bebaf78cbf7444 /quantum/visualizer/lcd_backlight.h | |
parent | 154305ce1be16b2c8abce5e5d4dee421f295d6b3 (diff) | |
parent | 1d5567a3a9ae1ca45bd5ff09f21edb7d1388afc3 (diff) |
Merge pull request #1217 from fredizzimo/ergodox_default_visualizer
Enable Ergodox Infinity LCD visualization
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); |