diff options
Diffstat (limited to 'quantum/rgblight.h')
| -rw-r--r-- | quantum/rgblight.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index 726b8de72..92130192c 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -1,8 +1,23 @@ | |||
| 1 | /* Copyright 2017 Yang Liu | ||
| 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 | */ | ||
| 1 | #ifndef RGBLIGHT_H | 16 | #ifndef RGBLIGHT_H |
| 2 | #define RGBLIGHT_H | 17 | #define RGBLIGHT_H |
| 3 | 18 | ||
| 4 | #ifdef RGBLIGHT_ANIMATIONS | 19 | #ifdef RGBLIGHT_ANIMATIONS |
| 5 | #define RGBLIGHT_MODES 24 | 20 | #define RGBLIGHT_MODES 34 |
| 6 | #else | 21 | #else |
| 7 | #define RGBLIGHT_MODES 1 | 22 | #define RGBLIGHT_MODES 1 |
| 8 | #endif | 23 | #endif |
| @@ -22,6 +37,14 @@ | |||
| 22 | #define RGBLIGHT_EFFECT_DUALKNIGHT_LENGTH 4 | 37 | #define RGBLIGHT_EFFECT_DUALKNIGHT_LENGTH 4 |
| 23 | #endif | 38 | #endif |
| 24 | 39 | ||
| 40 | #ifndef RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL | ||
| 41 | #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #ifndef RGBLIGHT_EFFECT_CHRISTMAS_STEP | ||
| 45 | #define RGBLIGHT_EFFECT_CHRISTMAS_STEP 2 | ||
| 46 | #endif | ||
| 47 | |||
| 25 | #ifndef RGBLIGHT_HUE_STEP | 48 | #ifndef RGBLIGHT_HUE_STEP |
| 26 | #define RGBLIGHT_HUE_STEP 10 | 49 | #define RGBLIGHT_HUE_STEP 10 |
| 27 | #endif | 50 | #endif |
| @@ -65,6 +88,7 @@ void rgblight_decrease(void); | |||
| 65 | void rgblight_toggle(void); | 88 | void rgblight_toggle(void); |
| 66 | void rgblight_enable(void); | 89 | void rgblight_enable(void); |
| 67 | void rgblight_step(void); | 90 | void rgblight_step(void); |
| 91 | void rgblight_step_reverse(void); | ||
| 68 | void rgblight_mode(uint8_t mode); | 92 | void rgblight_mode(uint8_t mode); |
| 69 | void rgblight_set(void); | 93 | void rgblight_set(void); |
| 70 | void rgblight_update_dword(uint32_t dword); | 94 | void rgblight_update_dword(uint32_t dword); |
