|
33 | 33 | #define RGB16TO24(c) ((((uint32_t)c & 0xF800) << 8) | ((c & 0x07E0) << 5) | ((c & 0x1F) << 3)) |
34 | 34 |
|
35 | 35 | #define RGB565_BLACK RGB565(0, 0, 0) |
36 | | -#define RGB565_NAVY RGB565(0, 0, 123) |
37 | | -#define RGB565_DARKGREEN RGB565(0, 125, 0) |
38 | | -#define RGB565_DARKCYAN RGB565(0, 125, 123) |
39 | | -#define RGB565_MAROON RGB565(123, 0, 0) |
40 | | -#define RGB565_PURPLE RGB565(123, 0, 123) |
41 | | -#define RGB565_OLIVE RGB565(123, 125, 0) |
42 | | -#define RGB565_LIGHTGREY RGB565(198, 195, 198) |
43 | | -#define RGB565_DARKGREY RGB565(123, 125, 123) |
| 36 | +#define RGB565_NAVY RGB565(0, 0, 120) |
| 37 | +#define RGB565_DARKGREEN RGB565(0, 124, 0) |
| 38 | +#define RGB565_DARKCYAN RGB565(0, 124, 120) |
| 39 | +#define RGB565_MAROON RGB565(120, 0, 0) |
| 40 | +#define RGB565_PURPLE RGB565(120, 0, 120) |
| 41 | +#define RGB565_OLIVE RGB565(120, 124, 0) |
| 42 | +#define RGB565_LIGHTGREY RGB565(192, 192, 192) |
| 43 | +#define RGB565_DARKGREY RGB565(120, 120, 120) |
44 | 44 | #define RGB565_BLUE RGB565(0, 0, 255) |
45 | 45 | #define RGB565_GREEN RGB565(0, 255, 0) |
46 | 46 | #define RGB565_CYAN RGB565(0, 255, 255) |
47 | 47 | #define RGB565_RED RGB565(255, 0, 0) |
48 | 48 | #define RGB565_MAGENTA RGB565(255, 0, 255) |
49 | 49 | #define RGB565_YELLOW RGB565(255, 255, 0) |
50 | 50 | #define RGB565_WHITE RGB565(255, 255, 255) |
51 | | -#define RGB565_ORANGE RGB565(255, 165, 0) |
52 | | -#define RGB565_GREENYELLOW RGB565(173, 255, 41) |
53 | | -#define RGB565_PALERED RGB565(255, 130, 198) |
54 | | -#define RGB565_PINK RGB565(255, 198, 198) |
| 51 | +#define RGB565_ORANGE RGB565(255, 164, 0) |
| 52 | +#define RGB565_GREENYELLOW RGB565(168, 255, 40) |
| 53 | +#define RGB565_PALERED RGB565(255, 128, 192) |
| 54 | +#define RGB565_PINK RGB565(255, 192, 192) |
55 | 55 |
|
56 | 56 | // Color definitions |
57 | 57 | #ifndef DISABLE_COLOR_DEFINES |
|
0 commit comments