12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef LCD_BACKLIGHT_H_
- #define LCD_BACKLIGHT_H_
- #include "stdint.h"
- #define LCD_COLOR(hue, saturation, intensity) (hue << 16 | saturation << 8 | intensity)
- #define LCD_HUE(color) ((color >> 16) & 0xFF)
- #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);
- void lcd_backlight_hal_init(void);
- void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b);
- #endif
|