// Good colors for my TFT displays // BGR565 color codes for your TFT // Inverted BGR565: color = 0xFFFF - standard BGR565 // Color definitions for swapped red/blue (BGR instead of RGB) // Inverted color definitions for your display #define COLOR_BLACK 0xFFFF // black (inverted) #define COLOR_WHITE 0x0000 // white (inverted) #define COLOR_RED (0xFFFF - 0xF800) // red (inverted, now correct) #define COLOR_GREEN (0xFFFF - 0x07E0) // green (inverted) #define COLOR_BLUE (0xFFFF - 0x001F) // blue (inverted, now correct) #define COLOR_YELLOW (0xFFFF - 0x07FF) // yellow (inverted) #define COLOR_CYAN (0xFFFF - 0xFFE0) // cyan (inverted) #define COLOR_MAGENTA (0xFFFF - 0xF81F) // magenta (inverted) #define COLOR_PURPLE (0xFFFF - 0xF81F) // purple (inverted) // Wrong colors for my TFT displays, but good for debugging // Secondary colors (BGR565) // Secondary colors (inverted) // ...existing code for other colors... // Other colors (BGR565, best effort) // Other colors (inverted) #define COLOR_DARKRED (0xFFFF - 0x0010) #define COLOR_PINK (0xFFFF - 0xFC1F) #define COLOR_NAVY (0xFFFF - 0x8000) #define COLOR_AQUA (0xFFFF - 0xFD00) #define COLOR_SKYBLUE (0xFFFF - 0xF6FB) #define COLOR_GREENYELLOW (0xFFFF - 0xAFE5) #define COLOR_DARKGREEN (0xFFFF - 0x03E0) #define COLOR_DARKCYAN (0xFFFF - 0x03EF) #define COLOR_GOLD (0xFFFF - 0x07FF) #define COLOR_LIGHTGREY (0xFFFF - 0xC618) #define COLOR_DARKGREY (0xFFFF - 0x7BEF) #define COLOR_LIGHTBLACK (0xFFFF - 0x4208) #define COLOR_SMOKYBLACK (0xFFFF - 0x2104) #define COLOR_CHARCOAL (0xFFFF - 0x3186) #define COLOR_VIOLET (0xFFFF - 0x9199) #define COLOR_BROWN (0xFFFF - 0x8200) #define COLOR_ORANGE (0xFFFF - 0xFD20) #define COLOR_LIME (0xFFFF - 0x87E0) #define COLOR_MAROON (0xFFFF - 0x7800) #define COLOR_OLIVE (0xFFFF - 0x7BE0) #define COLOR_SILVER (0xFFFF - 0xA510) #define COLOR_CREAM (0xFFFF - 0xFFF9) #define COLOR_GHOST_WHITE (0xFFFF - 0xF7BF) #define COLOR_BACKGROUND 0xB5B6 // 0xB6B6B6 #define COLOR_TRANSPARENT TFT_TRANSPARENT