-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcolors.h
130 lines (99 loc) · 3.06 KB
/
colors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/* ************************************************************************
*
* color definitions for LCD modules
*
* (c) 2015-2017 by Markus Reschke
*
* ************************************************************************ */
/* source management */
#define COLORS_H
#ifdef LCD_COLOR
/* ************************************************************************
* LCD specific color values
* ************************************************************************ */
/*
* ILI9341/ILI9342
* - 6 bit coded RGB
*/
#ifdef LCD_ILI9341
#define COLOR_BLACK 0x0000
#define COLOR_BLUE 0x001f
#define COLOR_GREEN 0x07e0
#define COLOR_CYAN 0x07ff
#define COLOR_RED 0xf800
#define COLOR_MAGENTA 0xf81f
#define COLOR_YELLOW 0xffe0
#define COLOR_ORANGE 0xfd20
#define COLOR_GREY 0xc618
#define COLOR_WHITE 0xffff
#endif
/*
* ST7735
* - 6 bit coded RGB
*/
#ifdef LCD_ST7735
#define COLOR_BLACK 0x0000
#define COLOR_BLUE 0x001f
#define COLOR_GREEN 0x07e0
#define COLOR_CYAN 0x07ff
#define COLOR_RED 0xf800
#define COLOR_MAGENTA 0xf81f
#define COLOR_YELLOW 0xffe0
#define COLOR_ORANGE 0xfd20
#define COLOR_GREY 0xc618
#define COLOR_WHITE 0xffff
#endif
/*
* ILI9163
* - 6 bit coded RGB
*/
#ifdef LCD_ILI9163
#define COLOR_BLACK 0x0000
#define COLOR_BLUE 0x001f
#define COLOR_GREEN 0x07e0
#define COLOR_CYAN 0x07ff
#define COLOR_RED 0xf800
#define COLOR_MAGENTA 0xf81f
#define COLOR_YELLOW 0xffe0
#define COLOR_ORANGE 0xfd20
#define COLOR_GREY 0xc618
#define COLOR_WHITE 0xffff
#endif
/*
* VT100 serial terminal
* - 8 fixed foreground and background colors
* - foreground colors: 30-37
* - background colors: 30-47
*/
#ifdef LCD_VT100
/* foreground */
#define COLOR_BLACK 30
#define COLOR_RED 31
#define COLOR_GREEN 32
#define COLOR_YELLOW 33
#define COLOR_BLUE 34
#define COLOR_MAGENTA 35
#define COLOR_CYAN 36
#define COLOR_WHITE 37
#endif
/* ************************************************************************
* default colors
* ************************************************************************ */
/* background color */
#define COLOR_BACKGROUND COLOR_BLACK
/* standard pen color */
#define COLOR_PEN COLOR_GREEN
/* title color */
#define COLOR_TITLE COLOR_CYAN
/* marker (selected item) color */
#define COLOR_MARKER COLOR_YELLOW
/* symbol color */
#define COLOR_SYMBOL COLOR_YELLOW
/* color codes for probe pins */
#define COLOR_PROBE_1 COLOR_YELLOW
#define COLOR_PROBE_2 COLOR_GREEN
#define COLOR_PROBE_3 COLOR_RED
#endif
/* ************************************************************************
* EOF
* ************************************************************************ */