diff options
Diffstat (limited to 'keyboards/xbows/knight/config.h')
| -rw-r--r-- | keyboards/xbows/knight/config.h | 77 |
1 files changed, 42 insertions, 35 deletions
diff --git a/keyboards/xbows/knight/config.h b/keyboards/xbows/knight/config.h index fbe150439..540e29d4d 100644 --- a/keyboards/xbows/knight/config.h +++ b/keyboards/xbows/knight/config.h | |||
| @@ -1,44 +1,51 @@ | |||
| 1 | /* Copyright 2021 Shulin Huang <mumu@x-bows.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 | */ | ||
| 1 | #pragma once | 16 | #pragma once |
| 17 | |||
| 2 | #include "config_common.h" | 18 | #include "config_common.h" |
| 3 | #define VENDOR_ID 0xFEED | ||
| 4 | #define PRODUCT_ID 0x1225 | ||
| 5 | #define DEVICE_VER 0x0001 | ||
| 6 | #define MANUFACTURER X-BOWS | ||
| 7 | #define PRODUCT KNIGHT | ||
| 8 | 19 | ||
| 9 | /* key matrix size */ | 20 | #define VENDOR_ID 0xFEED |
| 10 | // Rows are doubled-up | 21 | #define PRODUCT_ID 0x1225 |
| 11 | #define MATRIX_ROWS 12 | 22 | #define DEVICE_VER 0x0001 |
| 12 | #define MATRIX_COLS 15 | 23 | #define MANUFACTURER X-BOWS |
| 24 | #define PRODUCT KNIGHT | ||
| 13 | 25 | ||
| 14 | // wiring of each half | 26 | #define MATRIX_ROWS 6 |
| 15 | #define MATRIX_ROW_PINS { D2, E6, E2, F7, F6, F5 } | 27 | #define MATRIX_COLS 15 |
| 16 | #define MATRIX_COL_PINS { B0, B1, B2, B3, F4, F1, C6, B6, B5, B4, D7, D6, D4, D5, D3} | 28 | #define MATRIX_ROW_PINS { F7, F6, F5, F4, F1, F0 } |
| 17 | /* COL2ROW or ROW2COL */ | 29 | #define MATRIX_COL_PINS { B0, B1, B2, B3, B7, D2, D3, D5, D4, D6, D7, B4, B5, B6, C6 } |
| 18 | #define DIODE_DIRECTION COL2ROW | 30 | #define DIODE_DIRECTION COL2ROW |
| 19 | 31 | ||
| 20 | /* define if matrix has ghost */ | 32 | #define DEBOUNCE 3 |
| 21 | //#define MATRIX_HAS_GHOST | ||
| 22 | 33 | ||
| 23 | #define LED_NUM_LOCK_PIN D1 | 34 | #ifdef RGB_MATRIX_ENABLE |
| 24 | #define LED_CAPS_LOCK_PIN C7 | 35 | # define RGB_MATRIX_LED_PROCESS_LIMIT 18 |
| 25 | #define LED_PIN_ON_STATE 0 | 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 |
| 37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | ||
| 38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | ||
| 39 | # define RGB_MATRIX_KEYPRESSES | ||
| 40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | ||
| 41 | # define RGB_MATRIX_CENTER { 92, 43 } | ||
| 26 | 42 | ||
| 27 | /* number of backlight levels */ | 43 | # define DRIVER_ADDR_1 0b1110100 |
| 28 | // #define BACKLIGHT_LEVELS 3 | 44 | # define DRIVER_ADDR_2 0b1110110 |
| 29 | #define BACKLIGHT_PIN B7 | 45 | # define DRIVER_ADDR_3 0b1110101 |
| 30 | #ifdef BACKLIGHT_PIN | 46 | # define DRIVER_COUNT 3 |
| 31 | #define BACKLIGHT_BREATHING | 47 | # define DRIVER_1_LED_TOTAL 36 |
| 32 | #define BACKLIGHT_LEVELS 3 | 48 | # define DRIVER_2_LED_TOTAL 35 |
| 49 | # define DRIVER_3_LED_TOTAL 15 | ||
| 50 | # define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + DRIVER_3_LED_TOTAL) | ||
| 33 | #endif | 51 | #endif |
| 34 | /* Set 0 if debouncing isn't needed */ | ||
| 35 | #define DEBOUNCE 5 | ||
| 36 | |||
| 37 | /* serial.c configuration for split keyboard */ | ||
| 38 | #define SOFT_SERIAL_PIN D0 | ||
| 39 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 40 | #define SPLIT_HAND_PIN F0 | ||
| 41 | #define LOCKING_SUPPORT_ENABLE | ||
| 42 | /* Locking resynchronize hack */ | ||
| 43 | #define LOCKING_RESYNC_ENABLE | ||
| 44 | |||
