Browse Source

Define RGB colors (#5300)

* Define RGB colors

Define RGB colors and pass them to the rgblight functions, instead of
defining multiple macros.

* Add new color definitions support for RGB Matrix

* Add/clarify info about new color definitions in Docs

* Add deprecation warning banner to rgblight_list.h
pjones-keymap
Erovia 2 months ago
parent
commit
066818f5f9
4 changed files with 210 additions and 95 deletions
  1. 29
    0
      docs/feature_rgb_matrix.md
  2. 34
    1
      docs/feature_rgblight.md
  3. 1
    0
      quantum/rgb_matrix.h
  4. 146
    94
      quantum/rgblight_list.h

+ 29
- 0
docs/feature_rgb_matrix.md View File

@@ -236,6 +236,35 @@ void rgb_matrix_indicators_kb(void) {
236 236
 
237 237
 A similar function works in the keymap as `rgb_matrix_indicators_user`.
238 238
 
239
+
240
+## Colors
241
+
242
+These are shorthands to popular colors. The `RGB` ones can be passed to the `setrgb` functions, while the `HSV` ones to the `sethsv` functions.
243
+
244
+|RGB                |HSV                |
245
+|-------------------|-------------------|
246
+|`RGB_WHITE`        |`HSV_WHITE`        |
247
+|`RGB_RED`          |`HSV_RED`          |
248
+|`RGB_CORAL`        |`HSV_CORAL`        |
249
+|`RGB_ORANGE`       |`HSV_ORANGE`       |
250
+|`RGB_GOLDENROD`    |`HSV_GOLDENROD`    |
251
+|`RGB_GOLD`         |`HSV_GOLD`         |
252
+|`RGB_YELLOW`       |`HSV_YELLOW`       |
253
+|`RGB_CHARTREUSE`   |`HSV_CHARTREUSE`   |
254
+|`RGB_GREEN`        |`HSV_GREEN`        |
255
+|`RGB_SPRINGGREEN`  |`HSV_SPRINGGREEN`  |
256
+|`RGB_TURQUOISE`    |`HSV_TURQUOISE`    |
257
+|`RGB_TEAL`         |`HSV_TEAL`         |
258
+|`RGB_CYAN`         |`HSV_CYAN`         |
259
+|`RGB_AZURE`        |`HSV_AZURE`        |
260
+|`RGB_BLUE`         |`HSV_BLUE`         |
261
+|`RGB_PURPLE`       |`HSV_PURPLE`       |
262
+|`RGB_MAGENTA`      |`HSV_MAGENTA`      |
263
+|`RGB_PINK`         |`HSV_PINK`         |
264
+
265
+These are defined in [`rgblight_list.h`](https://github.com/qmk/qmk_firmware/blob/master/quantum/rgblight_list.h). Feel free to add to this list!
266
+
267
+
239 268
 ## Additional `config.h` Options
240 269
 
241 270
 ```C

+ 34
- 1
docs/feature_rgblight.md View File

@@ -191,7 +191,40 @@ If you need to change your RGB lighting in code, for example in a macro to chang
191 191
 |`rgblight_decrease_val_noeeprom()`          |Decrease the value for all LEDs. This wraps around at minimum value (not written to EEPROM)                                                                   |
192 192
 |`rgblight_set_clipping_range(pos, num)`     |Set clipping Range                                                                                                                                            |
193 193
 
194
-Additionally, [`rgblight_list.h`](https://github.com/qmk/qmk_firmware/blob/master/quantum/rgblight_list.h) defines several predefined shortcuts for various colors. Feel free to add to this list!
194
+## Colors
195
+
196
+These are shorthands to popular colors. The `RGB` ones can be passed to the `setrgb` functions, while the `HSV` ones to the `sethsv` functions.
197
+
198
+|RGB                |HSV                |
199
+|-------------------|-------------------|
200
+|`RGB_WHITE`        |`HSV_WHITE`        |
201
+|`RGB_RED`          |`HSV_RED`          |
202
+|`RGB_CORAL`        |`HSV_CORAL`        |
203
+|`RGB_ORANGE`       |`HSV_ORANGE`       |
204
+|`RGB_GOLDENROD`    |`HSV_GOLDENROD`    |
205
+|`RGB_GOLD`         |`HSV_GOLD`         |
206
+|`RGB_YELLOW`       |`HSV_YELLOW`       |
207
+|`RGB_CHARTREUSE`   |`HSV_CHARTREUSE`   |
208
+|`RGB_GREEN`        |`HSV_GREEN`        |
209
+|`RGB_SPRINGGREEN`  |`HSV_SPRINGGREEN`  |
210
+|`RGB_TURQUOISE`    |`HSV_TURQUOISE`    |
211
+|`RGB_TEAL`         |`HSV_TEAL`         |
212
+|`RGB_CYAN`         |`HSV_CYAN`         |
213
+|`RGB_AZURE`        |`HSV_AZURE`        |
214
+|`RGB_BLUE`         |`HSV_BLUE`         |
215
+|`RGB_PURPLE`       |`HSV_PURPLE`       |
216
+|`RGB_MAGENTA`      |`HSV_MAGENTA`      |
217
+|`RGB_PINK`         |`HSV_PINK`         |
218
+
219
+```c
220
+rgblight_setrgb(RGB_ORANGE);
221
+rgblight_sethsv_noeeprom(HSV_GREEN);
222
+rgblight_setrgb_at(RGB_GOLD, 3);
223
+rgblight_sethsv_range(HSV_WHITE, 0, 6);
224
+```
225
+
226
+These are defined in [`rgblight_list.h`](https://github.com/qmk/qmk_firmware/blob/master/quantum/rgblight_list.h). Feel free to add to this list!
227
+
195 228
 
196 229
 ## Changing the order of the LEDs
197 230
 

+ 1
- 0
quantum/rgb_matrix.h View File

@@ -24,6 +24,7 @@
24 24
 #include "rgb_matrix_types.h"
25 25
 #include "color.h"
26 26
 #include "quantum.h"
27
+#include "rgblight_list.h"
27 28
 
28 29
 #ifdef IS31FL3731
29 30
   #include "is31fl3731.h"

+ 146
- 94
quantum/rgblight_list.h View File

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

Loading…
Cancel
Save