diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/basekeys/slice/rev1_rgb/config.h |
Diffstat (limited to 'keyboards/basekeys/slice/rev1_rgb/config.h')
-rw-r--r-- | keyboards/basekeys/slice/rev1_rgb/config.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/keyboards/basekeys/slice/rev1_rgb/config.h b/keyboards/basekeys/slice/rev1_rgb/config.h new file mode 100644 index 000000000..9f503a582 --- /dev/null +++ b/keyboards/basekeys/slice/rev1_rgb/config.h | |||
@@ -0,0 +1,64 @@ | |||
1 | /* | ||
2 | Copyright 2020 2Moons | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | #pragma once | ||
18 | |||
19 | /* USB Device descriptor parameter */ | ||
20 | #define VENDOR_ID 0x04D8 | ||
21 | #define PRODUCT_ID 0xEC15 | ||
22 | #define DEVICE_VER 0x0002 | ||
23 | #define MANUFACTURER 2Moons | ||
24 | #define PRODUCT Slice RGB | ||
25 | |||
26 | /* key matrix size */ | ||
27 | #define MATRIX_ROWS 10 | ||
28 | #define MATRIX_COLS 9 | ||
29 | |||
30 | // wiring of each half | ||
31 | #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 } | ||
32 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, B5 } | ||
33 | |||
34 | #define DIODE_DIRECTION COL2ROW | ||
35 | |||
36 | /* Set 0 if debouncing isn't needed */ | ||
37 | #define DEBOUNCE 5 | ||
38 | |||
39 | /* serial.c configuration for split keyboard */ | ||
40 | #define SOFT_SERIAL_PIN D2 | ||
41 | |||
42 | /* Select hand configuration */ | ||
43 | //#define EE_HANDS | ||
44 | #define MASTER_LEFT | ||
45 | //#define MASTER_RIGHT | ||
46 | |||
47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
48 | #define LOCKING_SUPPORT_ENABLE | ||
49 | /* Locking resynchronize hack */ | ||
50 | #define LOCKING_RESYNC_ENABLE | ||
51 | |||
52 | /* RGB LED */ | ||
53 | #ifdef RGBLIGHT_ENABLE | ||
54 | #define RGB_DI_PIN D3 | ||
55 | #define RGBLED_NUM 69 // Number of LEDs. backlight x69 | ||
56 | #define RGBLED_SPLIT { 34, 35 } | ||
57 | #define RGBLIGHT_LIMIT_VAL 120 /* The maximum brightness level */ | ||
58 | #define RGBLIGHT_HUE_STEP 10 | ||
59 | #define RGBLIGHT_SAT_STEP 17 | ||
60 | #define RGBLIGHT_VAL_STEP 17 | ||
61 | #define RGBLIGHT_ANIMATIONS | ||
62 | #endif | ||
63 | |||
64 | #define OLED_FONT_H "keyboards/basekeys/slice/slice_font.c" | ||