diff options
Diffstat (limited to 'keyboards/melgeek/mj6xy/rev3/config.h')
-rwxr-xr-x | keyboards/melgeek/mj6xy/rev3/config.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/keyboards/melgeek/mj6xy/rev3/config.h b/keyboards/melgeek/mj6xy/rev3/config.h new file mode 100755 index 000000000..5024f7a3f --- /dev/null +++ b/keyboards/melgeek/mj6xy/rev3/config.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* Copyright 2020 MelGeek <melgeek001365@gmail.com> | ||
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 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | /* key matrix size */ | ||
20 | #define MATRIX_ROWS 5 | ||
21 | #define MATRIX_COLS 15 | ||
22 | |||
23 | #define MATRIX_ROW_PINS { F0, F1, F4, F5, F6 } | ||
24 | #define MATRIX_COL_PINS { B0, B1, B2, B3, B6, B5, B4, D7, D6, D4, D5, F7, D2, D1, D0 } | ||
25 | #define UNUSED_PINS | ||
26 | |||
27 | /* COL2ROW, ROW2COL*/ | ||
28 | #define DIODE_DIRECTION COL2ROW | ||
29 | |||
30 | #define LED_CAPS_LOCK_PIN C7 | ||
31 | #define LED_PIN_ON_STATE 0 | ||
32 | |||
33 | #define BACKLIGHT_PIN B7 | ||
34 | |||
35 | #define RGB_DI_PIN C6 | ||
36 | |||
37 | #ifdef BACKLIGHT_PIN | ||
38 | # define BACKLIGHT_LEVELS 10 | ||
39 | # define BACKLIGHT_ON_STATE 1 | ||
40 | # define BACKLIGHT_LIMIT_VAL 255 | ||
41 | #endif | ||
42 | |||
43 | #ifdef RGB_DI_PIN | ||
44 | # define RGBLIGHT_ANIMATIONS | ||
45 | # define RGBLED_NUM 16 | ||
46 | # define RGBLIGHT_HUE_STEP 8 | ||
47 | # define RGBLIGHT_SAT_STEP 8 | ||
48 | # define RGBLIGHT_VAL_STEP 8 | ||
49 | # define RGBLIGHT_SLEEP | ||
50 | #endif | ||