Predefined colors.
Predefined colors.
Color coding depends on the LCD hardware.
The following color names are predefined (values need to be defined by the driver):
- GLCD_COLOR_BLACK
- GLCD_COLOR_NAVY
- GLCD_COLOR_DARK_GREEN
- GLCD_COLOR_DARK_CYAN
- GLCD_COLOR_MAROON
- GLCD_COLOR_PURPLE
- GLCD_COLOR_OLIVE
- GLCD_COLOR_LIGHT_GREY
- GLCD_COLOR_DARK_GREY
- GLCD_COLOR_BLUE
- GLCD_COLOR_GREEN
- GLCD_COLOR_CYAN
- GLCD_COLOR_RED
- GLCD_COLOR_MAGENTA
- GLCD_COLOR_YELLOW
- GLCD_COLOT_WHITE
Example: RGB565 encoding
#define GLCD_COLOR_BLACK 0x0000
#define GLCD_COLOR_NAVY 0x000F
#define GLCD_COLOR_DARK_GREEN 0x03E0
#define GLCD_COLOR_DARK_CYAN 0x03EF
#define GLCD_COLOR_MAROON 0x7800
#define GLCD_COLOR_PURPLE 0x780F
#define GLCD_COLOR_OLIVE 0x7BE0
#define GLCD_COLOR_LIGHT_GREY 0xC618
#define GLCD_COLOR_DARK_GREY 0x7BEF
#define GLCD_COLOR_BLUE 0x001F
#define GLCD_COLOR_GREEN 0x07E0
#define GLCD_COLOR_CYAN 0x07FF
#define GLCD_COLOR_RED 0xF800
#define GLCD_COLOR_MAGENTA 0xF81F
#define GLCD_COLOR_YELLOW 0xFFE0
#define GLCD_COLOR_WHITE 0xFFFF