Commit | Line | Data |
---|---|---|
c1b46206 L |
1 | /* Copyright 2018 Jack Humbert |
2 | * | |
3 | * This program is free software: you can redistribute it and/or modify | |
4 | * it under the terms of the GNU General Public License as published by | |
5 | * the Free Software Foundation, either version 2 of the License, or | |
6 | * (at your option) any later version. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | * | |
13 | * You should have received a copy of the GNU General Public License | |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
15 | */ | |
066818f5 E |
16 | #pragma once |
17 | ||
18 | /* RGB COLORS */ | |
b624f32f | 19 | #define RGB_WHITE 0xFF, 0xFF, 0xFF |
20 | #define RGB_RED 0xFF, 0x00, 0x00 | |
21 | #define RGB_CORAL 0xFF, 0x7C, 0x4D | |
22 | #define RGB_ORANGE 0xFF, 0x80, 0x00 | |
23 | #define RGB_GOLDENROD 0xD9, 0xA5, 0x21 | |
24 | #define RGB_GOLD 0xFF, 0xD9, 0x00 | |
25 | #define RGB_YELLOW 0xFF, 0xFF, 0x00 | |
26 | #define RGB_CHARTREUSE 0x80, 0xFF, 0x00 | |
27 | #define RGB_GREEN 0x00, 0xFF, 0x00 | |
28 | #define RGB_SPRINGGREEN 0x00, 0xFF, 0x80 | |
29 | #define RGB_TURQUOISE 0x47, 0x6E, 0x6A | |
30 | #define RGB_TEAL 0x00, 0x80, 0x80 | |
31 | #define RGB_CYAN 0x00, 0xFF, 0xFF | |
32 | #define RGB_AZURE 0x99, 0xf5, 0xFF | |
33 | #define RGB_BLUE 0x00, 0x00, 0xFF | |
34 | #define RGB_PURPLE 0x7A, 0x00, 0xFF | |
35 | #define RGB_MAGENTA 0xFF, 0x00, 0xFF | |
36 | #define RGB_PINK 0xFF, 0x80, 0xBF | |
066818f5 E |
37 | |
38 | /* HSV COLORS */ | |
b624f32f | 39 | #define HSV_WHITE 0, 0, 255 |
40 | #define HSV_RED 0, 255, 255 | |
41 | #define HSV_CORAL 11, 176, 255 | |
42 | #define HSV_ORANGE 28, 255, 255 | |
43 | #define HSV_GOLDENROD 30, 218, 218 | |
44 | #define HSV_GOLD 36, 255, 255 | |
45 | #define HSV_YELLOW 43, 255, 255 | |
46 | #define HSV_CHARTREUSE 64, 255, 255 | |
47 | #define HSV_GREEN 85, 255, 255 | |
48 | #define HSV_SPRINGGREEN 106, 255, 255 | |
49 | #define HSV_TURQUOISE 123, 90, 112 | |
50 | #define HSV_TEAL 128, 255, 128 | |
51 | #define HSV_CYAN 128, 255, 255 | |
52 | #define HSV_AZURE 132, 102, 255 | |
53 | #define HSV_BLUE 170, 255, 255 | |
54 | #define HSV_PURPLE 191, 255, 255 | |
55 | #define HSV_MAGENTA 213, 255, 255 | |
56 | #define HSV_PINK 234, 128, 255 | |
066818f5 E |
57 | |
58 | /* | |
59 | ######################################################################################## | |
60 | ## ## | |
61 | ## ## | |
62 | ## ## | |
63 | ## The functions below have been deprecated and may be removed in a future release. ## | |
64 | ## ## | |
65 | ## Please use the values above with the RGB functions. ## | |
66 | ## ## | |
67 | ## ## | |
68 | ## ## | |
69 | ######################################################################################## | |
70 | */ | |
9cfeb4e6 | 71 | |
c1b46206 | 72 | /* SET RGB List */ |
b624f32f | 73 | #define rgblight_setrgb_white() rgblight_setrgb(RGB_WHITE) |
74 | #define rgblight_setrgb_red() rgblight_setrgb(RGB_RED) | |
75 | #define rgblight_setrgb_coral() rgblight_setrgb(RGB_CORAL) | |
76 | #define rgblight_setrgb_orange() rgblight_setrgb(RGB_ORANGE) | |
77 | #define rgblight_setrgb_goldenrod() rgblight_setrgb(RGB_GOLDENROD) | |
78 | #define rgblight_setrgb_gold() rgblight_setrgb(RGB_GOLD) | |
79 | #define rgblight_setrgb_yellow() rgblight_setrgb(RGB_YELLOW) | |
80 | #define rgblight_setrgb_chartreuse() rgblight_setrgb(RGB_CHARTREUSE) | |
81 | #define rgblight_setrgb_green() rgblight_setrgb(RGB_GREEN) | |
82 | #define rgblight_setrgb_springgreen() rgblight_setrgb(RGB_SPRINGGREEN) | |
83 | #define rgblight_setrgb_turquoise() rgblight_setrgb(RGB_TURQUOISE) | |
84 | #define rgblight_setrgb_teal() rgblight_setrgb(RGB_TEAL) | |
85 | #define rgblight_setrgb_cyan() rgblight_setrgb(RGB_CYAN) | |
86 | #define rgblight_setrgb_azure() rgblight_setrgb(RGB_AZURE) | |
87 | #define rgblight_setrgb_blue() rgblight_setrgb(RGB_BLUE) | |
88 | #define rgblight_setrgb_purple() rgblight_setrgb(RGB_PURPLE) | |
89 | #define rgblight_setrgb_magenta() rgblight_setrgb(RGB_MAGENTA) | |
90 | #define rgblight_setrgb_pink() rgblight_setrgb(RGB_PINK) | |
9cfeb4e6 | 91 | |
5941f81e | 92 | /* SET RGB List */ |
b624f32f | 93 | #define rgblight_setrgb_white_at(at) rgblight_setrgb_at(RGB_WHITE, at) |
94 | #define rgblight_setrgb_red_at(at) rgblight_setrgb_at(RGB_RED, at) | |
95 | #define rgblight_setrgb_coral_at(at) rgblight_setrgb_at(RGB_CORAL, at) | |
96 | #define rgblight_setrgb_orange_at(at) rgblight_setrgb_at(RGB_ORANGE at) | |
97 | #define rgblight_setrgb_goldenrod_at(at) rgblight_setrgb_at(RGB_GOLDENROD, at) | |
98 | #define rgblight_setrgb_gold_at(at) rgblight_setrgb_at(RGB_GOLD, at) | |
99 | #define rgblight_setrgb_yellow_at(at) rgblight_setrgb_at(RGB_YELLOW, at) | |
100 | #define rgblight_setrgb_chartreuse_at(at) rgblight_setrgb_at(RGB_CHARTREUSE, at) | |
101 | #define rgblight_setrgb_green_at(at) rgblight_setrgb_at(RGB_GREEN, at) | |
102 | #define rgblight_setrgb_springgreen_at(at) rgblight_setrgb_at(RGB_SPRINGGREEN, at) | |
103 | #define rgblight_setrgb_turquoise_at(at) rgblight_setrgb_at(RGB_TURQUOISE, at) | |
104 | #define rgblight_setrgb_teal_at(at) rgblight_setrgb_at(RGB_TEAL, at) | |
105 | #define rgblight_setrgb_cyan_at(at) rgblight_setrgb_at(RGB_CYAN, at) | |
106 | #define rgblight_setrgb_azure_at(at) rgblight_setrgb_at(RGB_AZURE, at) | |
107 | #define rgblight_setrgb_blue_at(at) rgblight_setrgb_at(RGB_BLUE, at) | |
108 | #define rgblight_setrgb_purple_at(at) rgblight_setrgb_at(RGB_PURPLE, at) | |
109 | #define rgblight_setrgb_magenta_at(at) rgblight_setrgb_at(RGB_MAGENTA, at) | |
110 | #define rgblight_setrgb_pink_at(at) rgblight_setrgb_at(RGB_PINK, at) | |
5941f81e | 111 | |
c1b46206 | 112 | /* SET HSV List */ |
b624f32f | 113 | #define rgblight_sethsv_white() rgblight_sethsv(HSV_WHITE) |
114 | #define rgblight_sethsv_red() rgblight_sethsv(HSV_RED) | |
115 | #define rgblight_sethsv_coral() rgblight_sethsv(HSV_CORAL) | |
116 | #define rgblight_sethsv_orange() rgblight_sethsv(HSV_ORANGE) | |
117 | #define rgblight_sethsv_goldenrod() rgblight_sethsv(HSV_GOLDENROD) | |
118 | #define rgblight_sethsv_gold() rgblight_sethsv(HSV_GOLD) | |
119 | #define rgblight_sethsv_yellow() rgblight_sethsv(HSV_YELLOW) | |
120 | #define rgblight_sethsv_chartreuse() rgblight_sethsv(HSV_CHARTREUSE) | |
121 | #define rgblight_sethsv_green() rgblight_sethsv(HSV_GREEN) | |
122 | #define rgblight_sethsv_springgreen() rgblight_sethsv(HSV_SPRINGGREEN) | |
123 | #define rgblight_sethsv_turquoise() rgblight_sethsv(HSV_TURQUOISE) | |
124 | #define rgblight_sethsv_teal() rgblight_sethsv(HSV_TEAL) | |
125 | #define rgblight_sethsv_cyan() rgblight_sethsv(HSV_CYAN) | |
126 | #define rgblight_sethsv_azure() rgblight_sethsv(HSV_AZURE) | |
127 | #define rgblight_sethsv_blue() rgblight_sethsv(HSV_BLUE) | |
128 | #define rgblight_sethsv_purple() rgblight_sethsv(HSV_PURPLE) | |
129 | #define rgblight_sethsv_magenta() rgblight_sethsv(HSV_MAGENTA) | |
130 | #define rgblight_sethsv_pink() rgblight_sethsv(HSV_PINK) | |
9cfeb4e6 | 131 | |
751719e6 DJ |
132 | /* SET HSV List */ |
133 | /* If you're doing layer indication, this is best, as it won't */ | |
134 | /* write to the eeprom, since it's limited (very high value). */ | |
135 | /* If you want to use modes with this (since you can), then you */ | |
136 | /* want to use rgblight_mode_noeeprom(x) instead. */ | |
b624f32f | 137 | #define rgblight_sethsv_noeeprom_white() rgblight_sethsv_noeeprom(HSV_WHITE) |
138 | #define rgblight_sethsv_noeeprom_red() rgblight_sethsv_noeeprom(HSV_RED) | |
139 | #define rgblight_sethsv_noeeprom_coral() rgblight_sethsv_noeeprom(HSV_CORAL) | |
140 | #define rgblight_sethsv_noeeprom_orange() rgblight_sethsv_noeeprom(HSV_ORANGE) | |
141 | #define rgblight_sethsv_noeeprom_goldenrod() rgblight_sethsv_noeeprom(HSV_GOLDENROD) | |
142 | #define rgblight_sethsv_noeeprom_gold() rgblight_sethsv_noeeprom(HSV_GOLD) | |
143 | #define rgblight_sethsv_noeeprom_yellow() rgblight_sethsv_noeeprom(HSV_YELLOW) | |
144 | #define rgblight_sethsv_noeeprom_chartreuse() rgblight_sethsv_noeeprom(HSV_CHARTREUSE) | |
145 | #define rgblight_sethsv_noeeprom_green() rgblight_sethsv_noeeprom(HSV_GREEN) | |
146 | #define rgblight_sethsv_noeeprom_springgreen() rgblight_sethsv_noeeprom(HSV_SPRINGGREEN) | |
147 | #define rgblight_sethsv_noeeprom_turquoise() rgblight_sethsv_noeeprom(HSV_TURQUOISE) | |
148 | #define rgblight_sethsv_noeeprom_teal() rgblight_sethsv_noeeprom(HSV_TEAL) | |
149 | #define rgblight_sethsv_noeeprom_cyan() rgblight_sethsv_noeeprom(HSV_CYAN) | |
150 | #define rgblight_sethsv_noeeprom_azure() rgblight_sethsv_noeeprom(HSV_AZURE) | |
151 | #define rgblight_sethsv_noeeprom_blue() rgblight_sethsv_noeeprom(HSV_BLUE) | |
152 | #define rgblight_sethsv_noeeprom_purple() rgblight_sethsv_noeeprom(HSV_PURPLE) | |
153 | #define rgblight_sethsv_noeeprom_magenta() rgblight_sethsv_noeeprom(HSV_MAGENTA) | |
154 | #define rgblight_sethsv_noeeprom_pink() rgblight_sethsv_noeeprom(HSV_PINK) | |
751719e6 | 155 | |
5941f81e | 156 | /* SET HSV List */ |
b624f32f | 157 | #define rgblight_sethsv_white_at(at) rgblight_sethsv_at(HSV_WHITE, at) |
158 | #define rgblight_sethsv_red_at(at) rgblight_sethsv_at(HSV_RED, at) | |
159 | #define rgblight_sethsv_coral_at(at) rgblight_sethsv_at(HSV_CORAL, at) | |
160 | #define rgblight_sethsv_orange_at(at) rgblight_sethsv_at(HSV_ORANGE, at) | |
161 | #define rgblight_sethsv_goldenrod_at(at) rgblight_sethsv_at(HSV_GOLDENROD, at) | |
162 | #define rgblight_sethsv_gold_at(at) rgblight_sethsv_at(HSV_GOLD, at) | |
163 | #define rgblight_sethsv_yellow_at(at) rgblight_sethsv_at(HSV_YELLOW, at) | |
164 | #define rgblight_sethsv_chartreuse_at(at) rgblight_sethsv_at(HSV_CHARTREUSE, at) | |
165 | #define rgblight_sethsv_green_at(at) rgblight_sethsv_at(HSV_GREEN, at) | |
166 | #define rgblight_sethsv_springgreen_at(at) rgblight_sethsv_at(HSV_SPRINGGREEN, at) | |
167 | #define rgblight_sethsv_turquoise_at(at) rgblight_sethsv_at(HSV_TURQUOISE, at) | |
168 | #define rgblight_sethsv_teal_at(at) rgblight_sethsv_at(HSV_TEAL, at) | |
169 | #define rgblight_sethsv_cyan_at(at) rgblight_sethsv_at(HSV_CYAN, at) | |
170 | #define rgblight_sethsv_azure_at(at) rgblight_sethsv_at(HSV_AZURE, at) | |
171 | #define rgblight_sethsv_blue_at(at) rgblight_sethsv_at(HSV_BLUE, at) | |
172 | #define rgblight_sethsv_purple_at(at) rgblight_sethsv_at(HSV_PURPLE, at) | |
173 | #define rgblight_sethsv_magenta_at(at) rgblight_sethsv_at(HSV_MAGENTA, at) | |
174 | #define rgblight_sethsv_pink_at(at) rgblight_sethsv_at(HSV_PINK, at) |