Color List
Color List
Color |
Color Name |
R |
G |
B |
16bit |
32bit |
color888 |
|
TFT_BLACK |
0 |
0 |
0 |
0x0000 |
0x000000U |
lcd.color888(0, 0, 0) |
|
TFT_NAVY |
0 |
0 |
128 |
0x000F |
0x000080U |
lcd.color888(0, 0, 128) |
|
TFT_DARKGREEN |
0 |
128 |
0 |
0x03E0 |
0x008000U |
lcd.color888(0, 128, 0) |
|
TFT_DARKCYAN |
0 |
128 |
128 |
0x03EF |
0x008080U |
lcd.color888(0, 128, 128) |
|
TFT_MAROON |
128 |
0 |
0 |
0x7800 |
0x800000U |
lcd.color888(128, 0, 0) |
|
TFT_PURPLE |
128 |
0 |
128 |
0x780F |
0x800080U |
lcd.color888(128, 0, 128) |
|
TFT_OLIVE |
128 |
128 |
0 |
0x7BE0 |
0x808000U |
lcd.color888(128, 128, 0) |
|
TFT_LIGHTGREY |
192 |
192 |
192 |
0xC618 |
0xC0C0C0U |
lcd.color888(192, 192, 192) |
|
TFT_DARKGREY |
128 |
128 |
128 |
0x7BEF |
0x808080U |
lcd.color888(128, 128, 128) |
|
TFT_BLUE |
0 |
0 |
255 |
0x001F |
0x0000FFU |
lcd.color888(0, 0, 255) |
|
TFT_GREEN |
0 |
255 |
0 |
0x07E0 |
0x00FF00U |
lcd.color888(0, 255, 0) |
|
TFT_CYAN |
0 |
255 |
255 |
0x07FF |
0x00FFFFU |
lcd.color888(0, 255, 255) |
|
TFT_RED |
255 |
0 |
0 |
0xF800 |
0xFF0000U |
lcd.color888(255, 0, 0) |
|
TFT_MAGENTA |
255 |
0 |
255 |
0xF81F |
0xFF00FFU |
lcd.color888(255, 0, 255) |
|
TFT_YELLOW |
255 |
255 |
0 |
0xFFE0 |
0xFFFF00U |
lcd.color888(255, 255, 0) |
|
TFT_WHITE |
255 |
255 |
255 |
0xFFFF |
0xFFFFFFU |
lcd.color888(255, 255, 255) |
|
TFT_ORANGE |
255 |
165 |
0 |
0xFD20 |
0xFFA500U |
lcd.color888(255, 165, 0) |
|
TFT_GREENYELLOW |
173 |
255 |
47 |
0xAFE5 |
0xADFF2FU |
lcd.color888(173, 255, 47) |
|
TFT_PINK |
255 |
192 |
203 |
0xFE19 |
0xFFC0CBU |
lcd.color888(255, 192, 203) |
|
TFT_BROWN |
150 |
75 |
0 |
0x9A60 |
0x964B00U |
lcd.color888(150, 75, 0) |
|
TFT_GOLD |
255 |
215 |
0 |
0xFEA0 |
0xFFD700U |
lcd.color888(255, 215, 0) |
Color Select
Basic Select
lcd.setColor(TFT_RED);
lcd.drawPixel(x, y);
When drawing
lcd.drawPixel(x, y, TFT_RED);