Browse Source

Add RGB565 Color Definitions for TFT (#15099)

Robby Candra 5 years ago
parent
commit
26fa08548c
1 changed files with 25 additions and 9 deletions
  1. 25
    9
      Marlin/src/lcd/dogm/u8g_dev_tft_320x240_upscale_from_128x64.cpp

+ 25
- 9
Marlin/src/lcd/dogm/u8g_dev_tft_320x240_upscale_from_128x64.cpp View File

@@ -86,15 +86,31 @@
86 86
 
87 87
 // see https://ee-programming-notepad.blogspot.com/2016/10/16-bit-color-generator-picker.html
88 88
 
89
-#define COLOR_BLACK 0x0000
90
-#define COLOR_WHITE 0xFFFF
91
-#define COLOR_BLUE  0x21DD
92
-#define COLOR_RED   0xF800
93
-#define COLOR_DARK  0x0003 // Some dark color
94
-#define COLOR_GREY  0x39E7
95
-#define COLOR_YELLOW 0xEFC0
96
-#define COLOR_ORANGE 0xFC00
97
-#define COLOR_GREEN  0x77E0
89
+#define COLOR_BLACK       0x0000  // #000000
90
+#define COLOR_WHITE       0xFFFF  // #FFFFFF
91
+#define COLOR_SILVER      0xC618  // #C0C0C0
92
+#define COLOR_GREY        0x7BEF  // #808080
93
+#define COLOR_DARKGREY    0x4208  // #404040
94
+#define COLOR_DARKGREY2   0x39E7  // #303030
95
+#define COLOR_DARK        0x0003  // Some dark color
96
+
97
+#define COLOR_RED         0xF800  // #FF0000
98
+#define COLOR_LIME        0x7E00  // #00FF00
99
+#define COLOR_BLUE        0x001F  // #0000FF
100
+#define COLOR_YELLOW      0xFFE0  // #FFFF00
101
+#define COLOR_MAGENTA     0xF81F  // #FF00FF
102
+#define COLOR_FUCHSIA     0xF81F  // #FF00FF
103
+#define COLOR_CYAN        0x07FF  // #00FFFF
104
+#define COLOR_AQUA        0x07FF  // #00FFFF
105
+
106
+#define COLOR_MAROON      0x7800  // #800000
107
+#define COLOR_GREEN       0x03E0  // #008000
108
+#define COLOR_NAVY        0x000F  // #000080
109
+#define COLOR_OLIVE       0x8400  // #808000
110
+#define COLOR_PURPLE      0x8010  // #800080
111
+#define COLOR_TEAL        0x0410  // #008080
112
+
113
+#define COLOR_ORANGE      0xFC00  // #FF7F00
98 114
 
99 115
 #ifndef TFT_MARLINUI_COLOR
100 116
   #define TFT_MARLINUI_COLOR COLOR_WHITE

Loading…
Cancel
Save