diff options
Diffstat (limited to 'keyboards/tkw/grandiceps/config.h')
| -rw-r--r-- | keyboards/tkw/grandiceps/config.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/keyboards/tkw/grandiceps/config.h b/keyboards/tkw/grandiceps/config.h new file mode 100644 index 000000000..44ea8d699 --- /dev/null +++ b/keyboards/tkw/grandiceps/config.h | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | /* Copyright 2020 Thys de Wet | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "config_common.h" | ||
| 19 | |||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0xFEED | ||
| 23 | #define PRODUCT_ID 0x7812 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER TKW | ||
| 26 | #define PRODUCT Grandiceps Split | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 10 | ||
| 30 | #define MATRIX_COLS 6 | ||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | #define MATRIX_COL_PINS { B0, A7, A3, A5, A4, A2 } | ||
| 35 | #define MATRIX_ROW_PINS { B12, A6, B13, B9, B8 } | ||
| 36 | #define MATRIX_COL_PINS_RIGHT { B0, A7, A3, A5, A4, A2 } | ||
| 37 | #define MATRIX_ROW_PINS_RIGHT { B12, A6, B13, B9, B8 } | ||
| 38 | |||
| 39 | #define DIODE_DIRECTION COL2ROW | ||
| 40 | |||
| 41 | #define SOFT_SERIAL_PIN A15 | ||
| 42 | #define SELECT_SOFT_SERIAL_SPEED 1 | ||
| 43 | |||
| 44 | #define MATRIX_IO_DELAY 5 | ||
| 45 | #define TAP_CODE_DELAY 10 | ||
| 46 | |||
| 47 | #define ENCODERS_PAD_A { B14 } | ||
| 48 | #define ENCODERS_PAD_B { B15 } | ||
| 49 | |||
| 50 | #define RGB_DI_PIN B1 | ||
| 51 | #define RGBLED_NUM 16 | ||
| 52 | #define RGBLED_SPLIT { 8,8 } | ||
| 53 | #define RGBLIGHT_LIMIT_VAL 120 | ||
| 54 | #define RGBLIGHT_ANIMATIONS | ||
| 55 | |||
| 56 | #define WS2812_PWM_DRIVER PWMD3 | ||
| 57 | #define WS2812_PWM_CHANNEL 4 | ||
| 58 | #define WS2812_PWM_PAL_MODE 2 | ||
| 59 | #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 | ||
| 60 | #define WS2812_DMA_CHANNEL 5 | ||
| 61 | |||
| 62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 63 | #define DEBOUNCE 5 | ||
| 64 | |||
| 65 | |||
| 66 | /* disable these deprecated features by default */ | ||
| 67 | #define NO_ACTION_MACRO | ||
| 68 | #define NO_ACTION_FUNCTION | ||
