diff options
author | U-LANDSRAAD\drashna <drashna@live.com> | 2018-03-28 13:16:09 -0700 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-03-28 16:55:58 -0400 |
commit | c1b46206a7872a422b16b453db09477bac995929 (patch) | |
tree | be3cc29bf569c52a28a07c5f27d23fc4f941e16c /quantum | |
parent | 9cfeb4e6cff521d4f7219f2774d69ce9ce96a0cf (diff) | |
download | qmk_firmware-c1b46206a7872a422b16b453db09477bac995929.tar.gz qmk_firmware-c1b46206a7872a422b16b453db09477bac995929.zip |
Fix commands and update my userspace (for testing)
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/rgblight.h | 1 | ||||
-rw-r--r-- | quantum/rgblight_list.h | 91 |
2 files changed, 54 insertions, 38 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index 73dd899469..8c33f1a8fc 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h @@ -74,6 +74,7 @@ #include "ws2812.h" #endif #include "rgblight_types.h" +#include "rgblight_list.h" extern LED_TYPE led[RGBLED_NUM]; diff --git a/quantum/rgblight_list.h b/quantum/rgblight_list.h index a7478b5ce6..5dd480b617 100644 --- a/quantum/rgblight_list.h +++ b/quantum/rgblight_list.h @@ -1,44 +1,59 @@ +/* Copyright 2018 Jack Humbert + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ #ifndef RGBLIGHT_LIST_H #define RGBLIGHT_LIST_H +/* SET RGB List */ +#define rgblight_setrgb_white() rgblight_setrgb (0xFF, 0xFF, 0xFF) +#define rgblight_setrgb_red() rgblight_setrgb (0xFF, 0x00, 0x00) +#define rgblight_setrgb_coral() rgblight_setrgb (0xFF, 0x7C, 0x4D) +#define rgblight_setrgb_orange() rgblight_setrgb (0xFF, 0x80, 0x00) +#define rgblight_setrgb_goldenrod() rgblight_setrgb (0xD9, 0xA5, 0x21) +#define rgblight_setrgb_gold() rgblight_setrgb (0xFF, 0xD9, 0x00) +#define rgblight_setrgb_yellow() rgblight_setrgb (0xFF, 0xFF, 0x00) +#define rgblight_setrgb_chartreuse() rgblight_setrgb (0x80, 0xFF, 0x00) +#define rgblight_setrgb_green() rgblight_setrgb (0x00, 0xFF, 0x00) +#define rgblight_setrgb_springgreen() rgblight_setrgb (0x00, 0xFF, 0x80) +#define rgblight_setrgb_turquoise() rgblight_setrgb (0x47, 0x6E, 0x6A) +#define rgblight_setrgb_teal() rgblight_setrgb (0x00, 0x80, 0x80) +#define rgblight_setrgb_cyan() rgblight_setrgb (0x00, 0xFF, 0xFF) +#define rgblight_setrgb_azure() rgblight_setrgb (0x99, 0xf5, 0xFF) +#define rgblight_setrgb_blue() rgblight_setrgb (0x00, 0x00, 0xFF) +#define rgblight_setrgb_purple() rgblight_setrgb (0x7A, 0x00, 0xFF) +#define rgblight_setrgb_magenta() rgblight_setrgb (0xFF, 0x00, 0xFF) +#define rgblight_setrgb_pink() rgblight_setrgb (0xFF, 0x80, 0xBF) -#define rgblight_setrgb_white() rgblight_setrgb (0xFF, 0xFF, 0xFF); -#define rgblight_setrgb_red() rgblight_setrgb (0xFF, 0x00, 0x00); -#define rgblight_setrgb_coral() rgblight_setrgb (0xFF, 0x7C, 0x4D); -#define rgblight_setrgb_orange() rgblight_setrgb (0xFF, 0x80, 0x00); -#define rgblight_setrgb_goldenrod() rgblight_setrgb (0xD9, 0xA5, 0x21); -#define rgblight_setrgb_gold() rgblight_setrgb (0xFF, 0xD9, 0x00); -#define rgblight_setrgb_yellow() rgblight_setrgb (0xFF, 0xFF, 0x00); -#define rgblight_setrgb_chartreuse() rgblight_setrgb (0x80, 0xFF, 0x00); -#define rgblight_setrgb_green() rgblight_setrgb (0x00, 0xFF, 0x00); -#define rgblight_setrgb_springgreen() rgblight_setrgb (0x00, 0xFF, 0x80); -#define rgblight_setrgb_turquoise() rgblight_setrgb (0x47, 0x6E, 0x6A); -#define rgblight_setrgb_teal() rgblight_setrgb (0x00, 0x80, 0x80); -#define rgblight_setrgb_cyan() rgblight_setrgb (0x00, 0xFF, 0xFF); -#define rgblight_setrgb_azure() rgblight_setrgb (0x99, 0xf5, 0xFF); -#define rgblight_setrgb_blue() rgblight_setrgb (0x00, 0x00, 0xFF); -#define rgblight_setrgb_purple() rgblight_setrgb (0x7A, 0x00, 0xFF); -#define rgblight_setrgb_magenta() rgblight_setrgb (0xFF, 0x00, 0xFF); -#define rgblight_setrgb_pink() rgblight_setrgb (0xFF, 0x80, 0xBF); - - -#define rgblight_sethsv_white() rgblight_sethsv (0, 0x00, 255); -#define rgblight_sethsv_red() rgblight_sethsv (0, 255, 255); -#define rgblight_sethsv_coral() rgblight_sethsv (16, 176, 255); -#define rgblight_sethsv_orange() rgblight_sethsv (39, 255, 255); -#define rgblight_sethsv_goldenrod() rgblight_sethsv (43, 218, 218); -#define rgblight_sethsv_gold() rgblight_sethsv (51, 255, 255); -#define rgblight_sethsv_yellow() rgblight_sethsv (60, 255, 255); -#define rgblight_sethsv_chartreuse() rgblight_sethsv (90, 255, 255); -#define rgblight_sethsv_green() rgblight_sethsv (120, 255, 255); -#define rgblight_sethsv_springgreen() rgblight_sethsv (150, 255, 255); -#define rgblight_sethsv_turquoise() rgblight_sethsv (174, 90, 112); -#define rgblight_sethsv_teal() rgblight_sethsv (180, 255, 128); -#define rgblight_sethsv_cyan() rgblight_sethsv (180, 255, 255); -#define rgblight_sethsv_azure() rgblight_sethsv (186, 102, 255); -#define rgblight_sethsv_blue() rgblight_sethsv (240, 255, 255); -#define rgblight_sethsv_purple() rgblight_sethsv (270, 255, 255); -#define rgblight_sethsv_magenta() rgblight_sethsv (300, 255, 255); -#define rgblight_sethsv_pink() rgblight_sethsv (330, 128, 255); +/* SET HSV List */ +#define rgblight_sethsv_white() rgblight_sethsv ( 0, 0, 255) +#define rgblight_sethsv_red() rgblight_sethsv ( 0, 255, 255) +#define rgblight_sethsv_coral() rgblight_sethsv ( 16, 176, 255) +#define rgblight_sethsv_orange() rgblight_sethsv ( 39, 255, 255) +#define rgblight_sethsv_goldenrod() rgblight_sethsv ( 43, 218, 218) +#define rgblight_sethsv_gold() rgblight_sethsv ( 51, 255, 255) +#define rgblight_sethsv_yellow() rgblight_sethsv ( 60, 255, 255) +#define rgblight_sethsv_chartreuse() rgblight_sethsv ( 90, 255, 255) +#define rgblight_sethsv_green() rgblight_sethsv (120, 255, 255) +#define rgblight_sethsv_springgreen() rgblight_sethsv (150, 255, 255) +#define rgblight_sethsv_turquoise() rgblight_sethsv (174, 90, 112) +#define rgblight_sethsv_teal() rgblight_sethsv (180, 255, 128) +#define rgblight_sethsv_cyan() rgblight_sethsv (180, 255, 255) +#define rgblight_sethsv_azure() rgblight_sethsv (186, 102, 255) +#define rgblight_sethsv_blue() rgblight_sethsv (240, 255, 255) +#define rgblight_sethsv_purple() rgblight_sethsv (270, 255, 255) +#define rgblight_sethsv_magenta() rgblight_sethsv (300, 255, 255) +#define rgblight_sethsv_pink() rgblight_sethsv (330, 128, 255) #endif |