diff options
Diffstat (limited to 'quantum/visualizer/lcd_backlight.h')
| -rw-r--r-- | quantum/visualizer/lcd_backlight.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/quantum/visualizer/lcd_backlight.h b/quantum/visualizer/lcd_backlight.h deleted file mode 100644 index 4ea5b1463..000000000 --- a/quantum/visualizer/lcd_backlight.h +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | /* | ||
| 2 | The MIT License (MIT) | ||
| 3 | |||
| 4 | Copyright (c) 2016 Fred Sundvik | ||
| 5 | |||
| 6 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 7 | of this software and associated documentation files (the "Software"), to deal | ||
| 8 | in the Software without restriction, including without limitation the rights | ||
| 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 10 | copies of the Software, and to permit persons to whom the Software is | ||
| 11 | furnished to do so, subject to the following conditions: | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in all | ||
| 14 | copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 22 | SOFTWARE. | ||
| 23 | */ | ||
| 24 | |||
| 25 | #pragma once | ||
| 26 | |||
| 27 | #include <stdint.h> | ||
| 28 | |||
| 29 | // Helper macros for storing hue, staturation and intensity as unsigned integers | ||
| 30 | #define LCD_COLOR(hue, saturation, intensity) (hue << 16 | saturation << 8 | intensity) | ||
| 31 | #define LCD_HUE(color) ((color >> 16) & 0xFF) | ||
| 32 | #define LCD_SAT(color) ((color >> 8) & 0xFF) | ||
| 33 | #define LCD_INT(color) (color & 0xFF) | ||
| 34 | |||
| 35 | static inline uint32_t change_lcd_color_intensity(uint32_t color, uint8_t new_intensity) { return (color & 0xFFFFFF00) | new_intensity; } | ||
| 36 | |||
| 37 | void lcd_backlight_init(void); | ||
| 38 | void lcd_backlight_color(uint8_t hue, uint8_t saturation, uint8_t intensity); | ||
| 39 | void lcd_backlight_brightness(uint8_t b); | ||
| 40 | uint8_t lcd_get_backlight_brightness(void); | ||
| 41 | |||
| 42 | void lcd_backlight_hal_init(void); | ||
| 43 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b); | ||
