diff options
Diffstat (limited to 'keyboards/crkbd/rev1/config.h')
-rw-r--r-- | keyboards/crkbd/rev1/config.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/keyboards/crkbd/rev1/config.h b/keyboards/crkbd/rev1/config.h new file mode 100644 index 000000000..337859d05 --- /dev/null +++ b/keyboards/crkbd/rev1/config.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | Copyright 2019 @foostan | ||
3 | Copyright 2020 Drashna Jaelre <@drashna> | ||
4 | |||
5 | This program is free software: you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation, either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #pragma once | ||
20 | |||
21 | #define USE_SERIAL | ||
22 | #define SOFT_SERIAL_PIN D2 | ||
23 | |||
24 | /* ws2812 RGB LED */ | ||
25 | #define RGB_DI_PIN D3 | ||
26 | |||
27 | #ifdef RGBLIGHT_ENABLE | ||
28 | # define RGBLED_NUM 12 // Number of LEDs | ||
29 | # define RGBLED_SPLIT \ | ||
30 | { 6, 6 } | ||
31 | # define RGBLIGHT_SPLIT | ||
32 | #endif | ||
33 | |||
34 | #ifdef RGB_MATRIX_ENABLE | ||
35 | # define RGBLED_NUM 54 // Number of LEDs | ||
36 | # define DRIVER_LED_TOTAL RGBLED_NUM | ||
37 | # define RGB_MATRIX_SPLIT \ | ||
38 | { 27, 27 } | ||
39 | # define SPLIT_TRANSPORT_MIRROR | ||
40 | #endif | ||
41 | |||
42 | #define DIODE_DIRECTION COL2ROW | ||