Skip to content

Commit

Permalink
Add function for getting the LCD backlight brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo committed Jun 23, 2017
1 parent ff49259 commit da19852
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quantum/visualizer/lcd_backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,7 @@ void lcd_backlight_brightness(uint8_t b) {
current_brightness = b;
lcd_backlight_color(current_hue, current_saturation, current_intensity);
}

uint8_t lcd_get_backlight_brightness(void) {
return current_brightness;
}
1 change: 1 addition & 0 deletions quantum/visualizer/lcd_backlight.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ inline uint32_t change_lcd_color_intensity(uint32_t color, uint8_t 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);
uint8_t lcd_get_backlight_brightness(void);

void lcd_backlight_hal_init(void);
void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b);
Expand Down

0 comments on commit da19852

Please sign in to comment.