diff options
| -rw-r--r-- | docs/feature_rgb_matrix.md | 29 | ||||
| -rw-r--r-- | docs/feature_rgblight.md | 35 | ||||
| -rw-r--r-- | quantum/rgb_matrix.h | 1 | ||||
| -rw-r--r-- | quantum/rgblight_list.h | 240 |
4 files changed, 210 insertions, 95 deletions
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md index acef4717d..5309e749c 100644 --- a/docs/feature_rgb_matrix.md +++ b/docs/feature_rgb_matrix.md | |||
| @@ -236,6 +236,35 @@ void rgb_matrix_indicators_kb(void) { | |||
| 236 | 236 | ||
| 237 | A similar function works in the keymap as `rgb_matrix_indicators_user`. | 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 | ## Additional `config.h` Options | 268 | ## Additional `config.h` Options |
| 240 | 269 | ||
| 241 | ```C | 270 | ```C |
diff --git a/docs/feature_rgblight.md b/docs/feature_rgblight.md index 97a995994..48277373a 100644 --- a/docs/feature_rgblight.md +++ b/docs/feature_rgblight.md | |||
| @@ -191,7 +191,40 @@ If you need to change your RGB lighting in code, for example in a macro to chang | |||
| 191 | |`rgblight_decrease_val_noeeprom()` |Decrease the value for all LEDs. This wraps around at minimum value (not written to EEPROM) | | 191 | |`rgblight_decrease_val_noeeprom()` |Decrease the value for all LEDs. This wraps around at minimum value (not written to EEPROM) | |
| 192 | |`rgblight_set_clipping_range(pos, num)` |Set clipping Range | | 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 | ## Changing the order of the LEDs | 229 | ## Changing the order of the LEDs |
| 197 | 230 | ||
diff --git a/quantum/rgb_matrix.h b/quantum/rgb_matrix.h index 0a11f2692..f5be49435 100644 --- a/quantum/rgb_matrix.h +++ b/quantum/rgb_matrix.h | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | #include "rgb_matrix_types.h" | 24 | #include "rgb_matrix_types.h" |
| 25 | #include "color.h" | 25 | #include "color.h" |
| 26 | #include "quantum.h" | 26 | #include "quantum.h" |
| 27 | #include "rgblight_list.h" | ||
| 27 | 28 | ||
| 28 | #ifdef IS31FL3731 | 29 | #ifdef IS31FL3731 |
| 29 | #include "is31fl3731.h" | 30 | #include "is31fl3731.h" |
diff --git a/quantum/rgblight_list.h b/quantum/rgblight_list.h index 407fd8e9d..7b8313380 100644 --- a/quantum/rgblight_list.h +++ b/quantum/rgblight_list.h | |||
| @@ -13,111 +13,163 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #ifndef RGBLIGHT_LIST_H | 16 | #pragma once |
| 17 | #define RGBLIGHT_LIST_H | 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 | /* SET RGB List */ | 73 | /* SET RGB List */ |
| 20 | #define rgblight_setrgb_white() rgblight_setrgb (0xFF, 0xFF, 0xFF) | 74 | #define rgblight_setrgb_white() rgblight_setrgb (RGB_WHITE) |
| 21 | #define rgblight_setrgb_red() rgblight_setrgb (0xFF, 0x00, 0x00) | 75 | #define rgblight_setrgb_red() rgblight_setrgb (RGB_RED) |
| 22 | #define rgblight_setrgb_coral() rgblight_setrgb (0xFF, 0x7C, 0x4D) | 76 | #define rgblight_setrgb_coral() rgblight_setrgb (RGB_CORAL) |
| 23 | #define rgblight_setrgb_orange() rgblight_setrgb (0xFF, 0x80, 0x00) | 77 | #define rgblight_setrgb_orange() rgblight_setrgb (RGB_ORANGE) |
| 24 | #define rgblight_setrgb_goldenrod() rgblight_setrgb (0xD9, 0xA5, 0x21) | 78 | #define rgblight_setrgb_goldenrod() rgblight_setrgb (RGB_GOLDENROD) |
| 25 | #define rgblight_setrgb_gold() rgblight_setrgb (0xFF, 0xD9, 0x00) | 79 | #define rgblight_setrgb_gold() rgblight_setrgb (RGB_GOLD) |
| 26 | #define rgblight_setrgb_yellow() rgblight_setrgb (0xFF, 0xFF, 0x00) | 80 | #define rgblight_setrgb_yellow() rgblight_setrgb (RGB_YEllOW) |
| 27 | #define rgblight_setrgb_chartreuse() rgblight_setrgb (0x80, 0xFF, 0x00) | 81 | #define rgblight_setrgb_chartreuse() rgblight_setrgb (RGB_CHARTREUSE) |
| 28 | #define rgblight_setrgb_green() rgblight_setrgb (0x00, 0xFF, 0x00) | 82 | #define rgblight_setrgb_green() rgblight_setrgb (RGB_GREEN) |
| 29 | #define rgblight_setrgb_springgreen() rgblight_setrgb (0x00, 0xFF, 0x80) | 83 | #define rgblight_setrgb_springgreen() rgblight_setrgb (RGB_SPRINGGREEN) |
| 30 | #define rgblight_setrgb_turquoise() rgblight_setrgb (0x47, 0x6E, 0x6A) | 84 | #define rgblight_setrgb_turquoise() rgblight_setrgb (RGB_TURQUOISE) |
| 31 | #define rgblight_setrgb_teal() rgblight_setrgb (0x00, 0x80, 0x80) | 85 | #define rgblight_setrgb_teal() rgblight_setrgb (RGB_TEAL) |
| 32 | #define rgblight_setrgb_cyan() rgblight_setrgb (0x00, 0xFF, 0xFF) | 86 | #define rgblight_setrgb_cyan() rgblight_setrgb (RGB_CYAN) |
| 33 | #define rgblight_setrgb_azure() rgblight_setrgb (0x99, 0xf5, 0xFF) | 87 | #define rgblight_setrgb_azure() rgblight_setrgb (RGB_AZURE) |
| 34 | #define rgblight_setrgb_blue() rgblight_setrgb (0x00, 0x00, 0xFF) | 88 | #define rgblight_setrgb_blue() rgblight_setrgb (RGB_BLUE) |
| 35 | #define rgblight_setrgb_purple() rgblight_setrgb (0x7A, 0x00, 0xFF) | 89 | #define rgblight_setrgb_purple() rgblight_setrgb (RGB_PURPLE) |
| 36 | #define rgblight_setrgb_magenta() rgblight_setrgb (0xFF, 0x00, 0xFF) | 90 | #define rgblight_setrgb_magenta() rgblight_setrgb (RGB_MAGENTA) |
| 37 | #define rgblight_setrgb_pink() rgblight_setrgb (0xFF, 0x80, 0xBF) | 91 | #define rgblight_setrgb_pink() rgblight_setrgb (RGB_PINK) |
| 38 | 92 | ||
| 39 | /* SET RGB List */ | 93 | /* SET RGB List */ |
| 40 | #define rgblight_setrgb_white_at(at) rgblight_setrgb_at (0xFF, 0xFF, 0xFF, at) | 94 | #define rgblight_setrgb_white_at(at) rgblight_setrgb_at (RGB_WHITE, at) |
| 41 | #define rgblight_setrgb_red_at(at) rgblight_setrgb_at (0xFF, 0x00, 0x00, at) | 95 | #define rgblight_setrgb_red_at(at) rgblight_setrgb_at (RGB_RED, at) |
| 42 | #define rgblight_setrgb_coral_at(at) rgblight_setrgb_at (0xFF, 0x7C, 0x4D, at) | 96 | #define rgblight_setrgb_coral_at(at) rgblight_setrgb_at (RGB_CORAL, at) |
| 43 | #define rgblight_setrgb_orange_at(at) rgblight_setrgb_at (0xFF, 0x80, 0x00, at) | 97 | #define rgblight_setrgb_orange_at(at) rgblight_setrgb_at (RGB_ORANGE at) |
| 44 | #define rgblight_setrgb_goldenrod_at(at) rgblight_setrgb_at (0xD9, 0xA5, 0x21, at) | 98 | #define rgblight_setrgb_goldenrod_at(at) rgblight_setrgb_at (RGB_GOLDENROD, at) |
| 45 | #define rgblight_setrgb_gold_at(at) rgblight_setrgb_at (0xFF, 0xD9, 0x00, at) | 99 | #define rgblight_setrgb_gold_at(at) rgblight_setrgb_at (RGB_GOLD, at) |
| 46 | #define rgblight_setrgb_yellow_at(at) rgblight_setrgb_at (0xFF, 0xFF, 0x00, at) | 100 | #define rgblight_setrgb_yellow_at(at) rgblight_setrgb_at (RGB_YELLOW, at) |
| 47 | #define rgblight_setrgb_chartreuse_at(at) rgblight_setrgb_at (0x80, 0xFF, 0x00, at) | 101 | #define rgblight_setrgb_chartreuse_at(at) rgblight_setrgb_at (RGB_CHARTREUSE, at) |
| 48 | #define rgblight_setrgb_green_at(at) rgblight_setrgb_at (0x00, 0xFF, 0x00, at) | 102 | #define rgblight_setrgb_green_at(at) rgblight_setrgb_at (RGB_GREEN, at) |
| 49 | #define rgblight_setrgb_springgreen_at(at) rgblight_setrgb_at (0x00, 0xFF, 0x80, at) | 103 | #define rgblight_setrgb_springgreen_at(at) rgblight_setrgb_at (RGB_SPRINGGREEN, at) |
| 50 | #define rgblight_setrgb_turquoise_at(at) rgblight_setrgb_at (0x47, 0x6E, 0x6A, at) | 104 | #define rgblight_setrgb_turquoise_at(at) rgblight_setrgb_at (RGB_TURQUOISE, at) |
| 51 | #define rgblight_setrgb_teal_at(at) rgblight_setrgb_at (0x00, 0x80, 0x80, at) | 105 | #define rgblight_setrgb_teal_at(at) rgblight_setrgb_at (RGB_TEAL, at) |
| 52 | #define rgblight_setrgb_cyan_at(at) rgblight_setrgb_at (0x00, 0xFF, 0xFF, at) | 106 | #define rgblight_setrgb_cyan_at(at) rgblight_setrgb_at (RGB_CYAN, at) |
| 53 | #define rgblight_setrgb_azure_at(at) rgblight_setrgb_at (0x99, 0xf5, 0xFF, at) | 107 | #define rgblight_setrgb_azure_at(at) rgblight_setrgb_at (RGB_AZURE, at) |
| 54 | #define rgblight_setrgb_blue_at(at) rgblight_setrgb_at (0x00, 0x00, 0xFF, at) | 108 | #define rgblight_setrgb_blue_at(at) rgblight_setrgb_at (RGB_BLUE, at) |
| 55 | #define rgblight_setrgb_purple_at(at) rgblight_setrgb_at (0x7A, 0x00, 0xFF, at) | 109 | #define rgblight_setrgb_purple_at(at) rgblight_setrgb_at (RGB_PURPLE, at) |
| 56 | #define rgblight_setrgb_magenta_at(at) rgblight_setrgb_at (0xFF, 0x00, 0xFF, at) | 110 | #define rgblight_setrgb_magenta_at(at) rgblight_setrgb_at (RGB_MAGENTA, at) |
| 57 | #define rgblight_setrgb_pink_at(at) rgblight_setrgb_at (0xFF, 0x80, 0xBF, at) | 111 | #define rgblight_setrgb_pink_at(at) rgblight_setrgb_at (RGB_PINK, at) |
| 58 | 112 | ||
| 59 | /* SET HSV List */ | 113 | /* SET HSV List */ |
| 60 | #define rgblight_sethsv_white() rgblight_sethsv ( 0, 0, 255) | 114 | #define rgblight_sethsv_white() rgblight_sethsv (HSV_WHITE) |
| 61 | #define rgblight_sethsv_red() rgblight_sethsv ( 0, 255, 255) | 115 | #define rgblight_sethsv_red() rgblight_sethsv (HSV_RED) |
| 62 | #define rgblight_sethsv_coral() rgblight_sethsv ( 16, 176, 255) | 116 | #define rgblight_sethsv_coral() rgblight_sethsv (HSV_CORAL) |
| 63 | #define rgblight_sethsv_orange() rgblight_sethsv ( 39, 255, 255) | 117 | #define rgblight_sethsv_orange() rgblight_sethsv (HSV_ORANGE) |
| 64 | #define rgblight_sethsv_goldenrod() rgblight_sethsv ( 43, 218, 218) | 118 | #define rgblight_sethsv_goldenrod() rgblight_sethsv (HSV_GOLDENROD) |
| 65 | #define rgblight_sethsv_gold() rgblight_sethsv ( 51, 255, 255) | 119 | #define rgblight_sethsv_gold() rgblight_sethsv (HSV_GOLD) |
| 66 | #define rgblight_sethsv_yellow() rgblight_sethsv ( 60, 255, 255) | 120 | #define rgblight_sethsv_yellow() rgblight_sethsv (HSV_YELLOW) |
| 67 | #define rgblight_sethsv_chartreuse() rgblight_sethsv ( 90, 255, 255) | 121 | #define rgblight_sethsv_chartreuse() rgblight_sethsv (HSV_CHARTREUSE) |
| 68 | #define rgblight_sethsv_green() rgblight_sethsv (120, 255, 255) | 122 | #define rgblight_sethsv_green() rgblight_sethsv (HSV_GREEN) |
| 69 | #define rgblight_sethsv_springgreen() rgblight_sethsv (150, 255, 255) | 123 | #define rgblight_sethsv_springgreen() rgblight_sethsv (HSV_SPRINGGREEN) |
| 70 | #define rgblight_sethsv_turquoise() rgblight_sethsv (174, 90, 112) | 124 | #define rgblight_sethsv_turquoise() rgblight_sethsv (HSV_TURQUOISE) |
| 71 | #define rgblight_sethsv_teal() rgblight_sethsv (180, 255, 128) | 125 | #define rgblight_sethsv_teal() rgblight_sethsv (HSV_TEAL) |
| 72 | #define rgblight_sethsv_cyan() rgblight_sethsv (180, 255, 255) | 126 | #define rgblight_sethsv_cyan() rgblight_sethsv (HSV_CYAN) |
| 73 | #define rgblight_sethsv_azure() rgblight_sethsv (186, 102, 255) | 127 | #define rgblight_sethsv_azure() rgblight_sethsv (HSV_AZURE) |
| 74 | #define rgblight_sethsv_blue() rgblight_sethsv (240, 255, 255) | 128 | #define rgblight_sethsv_blue() rgblight_sethsv (HSV_BLUE) |
| 75 | #define rgblight_sethsv_purple() rgblight_sethsv (270, 255, 255) | 129 | #define rgblight_sethsv_purple() rgblight_sethsv (HSV_PURPLE) |
| 76 | #define rgblight_sethsv_magenta() rgblight_sethsv (300, 255, 255) | 130 | #define rgblight_sethsv_magenta() rgblight_sethsv (HSV_MAGENTA) |
| 77 | #define rgblight_sethsv_pink() rgblight_sethsv (330, 128, 255) | 131 | #define rgblight_sethsv_pink() rgblight_sethsv (HSV_PINK) |
| 78 | 132 | ||
| 79 | /* SET HSV List */ | 133 | /* SET HSV List */ |
| 80 | /* If you're doing layer indication, this is best, as it won't */ | 134 | /* If you're doing layer indication, this is best, as it won't */ |
| 81 | /* write to the eeprom, since it's limited (very high value). */ | 135 | /* write to the eeprom, since it's limited (very high value). */ |
| 82 | /* If you want to use modes with this (since you can), then you */ | 136 | /* If you want to use modes with this (since you can), then you */ |
| 83 | /* want to use rgblight_mode_noeeprom(x) instead. */ | 137 | /* want to use rgblight_mode_noeeprom(x) instead. */ |
| 84 | #define rgblight_sethsv_noeeprom_white() rgblight_sethsv_noeeprom ( 0, 0, 255) | 138 | #define rgblight_sethsv_noeeprom_white() rgblight_sethsv_noeeprom (HSV_WHITE) |
| 85 | #define rgblight_sethsv_noeeprom_red() rgblight_sethsv_noeeprom ( 0, 255, 255) | 139 | #define rgblight_sethsv_noeeprom_red() rgblight_sethsv_noeeprom (HSV_RED) |
| 86 | #define rgblight_sethsv_noeeprom_coral() rgblight_sethsv_noeeprom ( 16, 176, 255) | 140 | #define rgblight_sethsv_noeeprom_coral() rgblight_sethsv_noeeprom (HSV_CORAL) |
| 87 | #define rgblight_sethsv_noeeprom_orange() rgblight_sethsv_noeeprom ( 39, 255, 255) | 141 | #define rgblight_sethsv_noeeprom_orange() rgblight_sethsv_noeeprom (HSV_ORANGE) |
| 88 | #define rgblight_sethsv_noeeprom_goldenrod() rgblight_sethsv_noeeprom ( 43, 218, 218) | 142 | #define rgblight_sethsv_noeeprom_goldenrod() rgblight_sethsv_noeeprom (HSV_GOLDENROD) |
| 89 | #define rgblight_sethsv_noeeprom_gold() rgblight_sethsv_noeeprom ( 51, 255, 255) | 143 | #define rgblight_sethsv_noeeprom_gold() rgblight_sethsv_noeeprom (HSV_GOLD) |
| 90 | #define rgblight_sethsv_noeeprom_yellow() rgblight_sethsv_noeeprom ( 60, 255, 255) | 144 | #define rgblight_sethsv_noeeprom_yellow() rgblight_sethsv_noeeprom (HSV_YELLOW) |
| 91 | #define rgblight_sethsv_noeeprom_chartreuse() rgblight_sethsv_noeeprom ( 90, 255, 255) | 145 | #define rgblight_sethsv_noeeprom_chartreuse() rgblight_sethsv_noeeprom (HSV_CHARTREUSE) |
| 92 | #define rgblight_sethsv_noeeprom_green() rgblight_sethsv_noeeprom (120, 255, 255) | 146 | #define rgblight_sethsv_noeeprom_green() rgblight_sethsv_noeeprom (HSV_GREEN) |
| 93 | #define rgblight_sethsv_noeeprom_springgreen() rgblight_sethsv_noeeprom (150, 255, 255) | 147 | #define rgblight_sethsv_noeeprom_springgreen() rgblight_sethsv_noeeprom (HSV_SPRINGGREEN) |
| 94 | #define rgblight_sethsv_noeeprom_turquoise() rgblight_sethsv_noeeprom (174, 90, 112) | 148 | #define rgblight_sethsv_noeeprom_turquoise() rgblight_sethsv_noeeprom (HSV_TURQUOISE) |
| 95 | #define rgblight_sethsv_noeeprom_teal() rgblight_sethsv_noeeprom (180, 255, 128) | 149 | #define rgblight_sethsv_noeeprom_teal() rgblight_sethsv_noeeprom (HSV_TEAL) |
| 96 | #define rgblight_sethsv_noeeprom_cyan() rgblight_sethsv_noeeprom (180, 255, 255) | 150 | #define rgblight_sethsv_noeeprom_cyan() rgblight_sethsv_noeeprom (HSV_CYAN) |
| 97 | #define rgblight_sethsv_noeeprom_azure() rgblight_sethsv_noeeprom (186, 102, 255) | 151 | #define rgblight_sethsv_noeeprom_azure() rgblight_sethsv_noeeprom (HSV_AZURE) |
| 98 | #define rgblight_sethsv_noeeprom_blue() rgblight_sethsv_noeeprom (240, 255, 255) | 152 | #define rgblight_sethsv_noeeprom_blue() rgblight_sethsv_noeeprom (HSV_BLUE) |
| 99 | #define rgblight_sethsv_noeeprom_purple() rgblight_sethsv_noeeprom (270, 255, 255) | 153 | #define rgblight_sethsv_noeeprom_purple() rgblight_sethsv_noeeprom (HSV_PURPLE) |
| 100 | #define rgblight_sethsv_noeeprom_magenta() rgblight_sethsv_noeeprom (300, 255, 255) | 154 | #define rgblight_sethsv_noeeprom_magenta() rgblight_sethsv_noeeprom (HSV_MAGENTA) |
| 101 | #define rgblight_sethsv_noeeprom_pink() rgblight_sethsv_noeeprom (330, 128, 255) | 155 | #define rgblight_sethsv_noeeprom_pink() rgblight_sethsv_noeeprom (HSV_PINK) |
| 102 | 156 | ||
| 103 | /* SET HSV List */ | 157 | /* SET HSV List */ |
| 104 | #define rgblight_sethsv_white_at(at) rgblight_sethsv_at ( 0, 0, 255, at) | 158 | #define rgblight_sethsv_white_at(at) rgblight_sethsv_at (HSV_WHITE, at) |
| 105 | #define rgblight_sethsv_red_at(at) rgblight_sethsv_at ( 0, 255, 255, at) | 159 | #define rgblight_sethsv_red_at(at) rgblight_sethsv_at (HSV_RED, at) |
| 106 | #define rgblight_sethsv_coral_at(at) rgblight_sethsv_at ( 16, 176, 255, at) | 160 | #define rgblight_sethsv_coral_at(at) rgblight_sethsv_at (HSV_CORAL, at) |
| 107 | #define rgblight_sethsv_orange_at(at) rgblight_sethsv_at ( 39, 255, 255, at) | 161 | #define rgblight_sethsv_orange_at(at) rgblight_sethsv_at (HSV_ORANGE, at) |
| 108 | #define rgblight_sethsv_goldenrod_at(at) rgblight_sethsv_at ( 43, 218, 218, at) | 162 | #define rgblight_sethsv_goldenrod_at(at) rgblight_sethsv_at (HSV_GOLDENROD, at) |
| 109 | #define rgblight_sethsv_gold_at(at) rgblight_sethsv_at ( 51, 255, 255, at) | 163 | #define rgblight_sethsv_gold_at(at) rgblight_sethsv_at (HSV_GOLD, at) |
| 110 | #define rgblight_sethsv_yellow_at(at) rgblight_sethsv_at ( 60, 255, 255, at) | 164 | #define rgblight_sethsv_yellow_at(at) rgblight_sethsv_at (HSV_YELLOW, at) |
| 111 | #define rgblight_sethsv_chartreuse_at(at) rgblight_sethsv_at ( 90, 255, 255, at) | 165 | #define rgblight_sethsv_chartreuse_at(at) rgblight_sethsv_at (HSV_CHARTREUSE, at) |
| 112 | #define rgblight_sethsv_green_at(at) rgblight_sethsv_at (120, 255, 255, at) | 166 | #define rgblight_sethsv_green_at(at) rgblight_sethsv_at (HSV_GREEN, at) |
| 113 | #define rgblight_sethsv_springgreen_at(at) rgblight_sethsv_at (150, 255, 255, at) | 167 | #define rgblight_sethsv_springgreen_at(at) rgblight_sethsv_at (HSV_SPRINGGREEN, at) |
| 114 | #define rgblight_sethsv_turquoise_at(at) rgblight_sethsv_at (174, 90, 112, at) | 168 | #define rgblight_sethsv_turquoise_at(at) rgblight_sethsv_at (HSV_TURQUOISE, at) |
| 115 | #define rgblight_sethsv_teal_at(at) rgblight_sethsv_at (180, 255, 128, at) | 169 | #define rgblight_sethsv_teal_at(at) rgblight_sethsv_at (HSV_TEAL, at) |
| 116 | #define rgblight_sethsv_cyan_at(at) rgblight_sethsv_at (180, 255, 255, at) | 170 | #define rgblight_sethsv_cyan_at(at) rgblight_sethsv_at (HSV_CYAN, at) |
| 117 | #define rgblight_sethsv_azure_at(at) rgblight_sethsv_at (186, 102, 255, at) | 171 | #define rgblight_sethsv_azure_at(at) rgblight_sethsv_at (HSV_AZURE, at) |
| 118 | #define rgblight_sethsv_blue_at(at) rgblight_sethsv_at (240, 255, 255, at) | 172 | #define rgblight_sethsv_blue_at(at) rgblight_sethsv_at (HSV_BLUE, at) |
| 119 | #define rgblight_sethsv_purple_at(at) rgblight_sethsv_at (270, 255, 255, at) | 173 | #define rgblight_sethsv_purple_at(at) rgblight_sethsv_at (HSV_PURPLE, at) |
| 120 | #define rgblight_sethsv_magenta_at(at) rgblight_sethsv_at (300, 255, 255, at) | 174 | #define rgblight_sethsv_magenta_at(at) rgblight_sethsv_at (HSV_MAGENTA, at) |
| 121 | #define rgblight_sethsv_pink_at(at) rgblight_sethsv_at (330, 128, 255, at) | 175 | #define rgblight_sethsv_pink_at(at) rgblight_sethsv_at (HSV_PINK, at) |
| 122 | |||
| 123 | #endif | ||
