diff options
author | skullY <skullydazed@gmail.com> | 2019-08-30 11:19:03 -0700 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
commit | b624f32f944acdc59dcb130674c09090c5c404cb (patch) | |
tree | bc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /quantum/visualizer/lcd_backlight.h | |
parent | 61af76a10d00aba185b8338604171de490a13e3b (diff) | |
download | qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip |
clang-format changes
Diffstat (limited to 'quantum/visualizer/lcd_backlight.h')
-rw-r--r-- | quantum/visualizer/lcd_backlight.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/quantum/visualizer/lcd_backlight.h b/quantum/visualizer/lcd_backlight.h index 95d7a07b4..7b0b6a9fd 100644 --- a/quantum/visualizer/lcd_backlight.h +++ b/quantum/visualizer/lcd_backlight.h | |||
@@ -32,13 +32,11 @@ SOFTWARE. | |||
32 | #define LCD_SAT(color) ((color >> 8) & 0xFF) | 32 | #define LCD_SAT(color) ((color >> 8) & 0xFF) |
33 | #define LCD_INT(color) (color & 0xFF) | 33 | #define LCD_INT(color) (color & 0xFF) |
34 | 34 | ||
35 | static inline uint32_t change_lcd_color_intensity(uint32_t color, uint8_t new_intensity) { | 35 | static inline uint32_t change_lcd_color_intensity(uint32_t color, uint8_t new_intensity) { return (color & 0xFFFFFF00) | new_intensity; } |
36 | return (color & 0xFFFFFF00) | new_intensity; | ||
37 | } | ||
38 | 36 | ||
39 | void lcd_backlight_init(void); | 37 | void lcd_backlight_init(void); |
40 | void lcd_backlight_color(uint8_t hue, uint8_t saturation, uint8_t intensity); | 38 | void lcd_backlight_color(uint8_t hue, uint8_t saturation, uint8_t intensity); |
41 | void lcd_backlight_brightness(uint8_t b); | 39 | void lcd_backlight_brightness(uint8_t b); |
42 | uint8_t lcd_get_backlight_brightness(void); | 40 | uint8_t lcd_get_backlight_brightness(void); |
43 | 41 | ||
44 | void lcd_backlight_hal_init(void); | 42 | void lcd_backlight_hal_init(void); |