aboutsummaryrefslogtreecommitdiff
path: root/keyboards/work_louder/rgb_functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/work_louder/rgb_functions.h')
-rw-r--r--keyboards/work_louder/rgb_functions.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/keyboards/work_louder/rgb_functions.h b/keyboards/work_louder/rgb_functions.h
new file mode 100644
index 000000000..9a5cda0fc
--- /dev/null
+++ b/keyboards/work_louder/rgb_functions.h
@@ -0,0 +1,85 @@
1/* Copyright 2020 Neil Brian Ramirez
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 3 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 */
16
17#include "quantum.h"
18
19#ifndef VIA_ENABLE
20# ifndef RGB_MATRIX_TOGGLE
21# define RGB_MATRIX_TOGGLE KC_F15
22# endif
23# ifndef RGB_MATRIX_MODE_INC
24# define RGB_MATRIX_MODE_INC KC_F16
25# endif
26# ifndef RGB_MATRIX_MODE_DEC
27# define RGB_MATRIX_MODE_DEC KC_F17
28# endif
29# ifndef RGB_MATRIX_HUE_INC
30# define RGB_MATRIX_HUE_INC KC_F18
31# endif
32# ifndef RGB_MATRIX_HUE_DEC
33# define RGB_MATRIX_HUE_DEC KC_F19
34# endif
35# ifndef RGB_MATRIX_SAT_INC
36# define RGB_MATRIX_SAT_INC KC_F20
37# endif
38# ifndef RGB_MATRIX_SAT_DEC
39# define RGB_MATRIX_SAT_DEC KC_F21
40# endif
41# ifndef RGB_MATRIX_VAL_INC
42# define RGB_MATRIX_VAL_INC KC_F22
43# endif
44# ifndef RGB_MATRIX_VAL_DEC
45# define RGB_MATRIX_VAL_DEC KC_F23
46# endif
47#else
48# ifndef RGB_MATRIX_TOGGLE
49# define RGB_MATRIX_TOGGLE USER00
50# endif
51# ifndef RGB_MATRIX_MODE_INC
52# define RGB_MATRIX_MODE_INC USER01
53# endif
54# ifndef RGB_MATRIX_MODE_DEC
55# define RGB_MATRIX_MODE_DEC USER02
56# endif
57# ifndef RGB_MATRIX_HUE_INC
58# define RGB_MATRIX_HUE_INC USER03
59# endif
60# ifndef RGB_MATRIX_HUE_DEC
61# define RGB_MATRIX_HUE_DEC USER04
62# endif
63# ifndef RGB_MATRIX_SAT_INC
64# define RGB_MATRIX_SAT_INC USER05
65# endif
66# ifndef RGB_MATRIX_SAT_DEC
67# define RGB_MATRIX_SAT_DEC USER06
68# endif
69# ifndef RGB_MATRIX_VAL_INC
70# define RGB_MATRIX_VAL_INC USER07
71# endif
72# ifndef RGB_MATRIX_VAL_DEC
73# define RGB_MATRIX_VAL_DEC USER08
74# endif
75#endif
76
77#define R_M_TOG RGB_MATRIX_TOGGLE
78#define R_M_MOD RGB_MATRIX_MODE_INC
79#define R_M_RMOD RGB_MATRIX_MODE_DEC
80#define R_M_HUI RGB_MATRIX_HUE_INC
81#define R_M_HUD RGB_MATRIX_HUE_DEC
82#define R_M_SAI RGB_MATRIX_SAT_INC
83#define R_M_SAD RGB_MATRIX_SAT_DEC
84#define R_M_VAI RGB_MATRIX_VAL_INC
85#define R_M_VAD RGB_MATRIX_VAL_DEC