aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgblight.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/rgblight.h')
-rw-r--r--quantum/rgblight.h26
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);
65void rgblight_toggle(void); 88void rgblight_toggle(void);
66void rgblight_enable(void); 89void rgblight_enable(void);
67void rgblight_step(void); 90void rgblight_step(void);
91void rgblight_step_reverse(void);
68void rgblight_mode(uint8_t mode); 92void rgblight_mode(uint8_t mode);
69void rgblight_set(void); 93void rgblight_set(void);
70void rgblight_update_dword(uint32_t dword); 94void rgblight_update_dword(uint32_t dword);