diff options
Diffstat (limited to 'keyboards/exent/config.h')
| -rw-r--r-- | keyboards/exent/config.h | 81 |
1 files changed, 55 insertions, 26 deletions
diff --git a/keyboards/exent/config.h b/keyboards/exent/config.h index 16a49e78f..c6f445270 100644 --- a/keyboards/exent/config.h +++ b/keyboards/exent/config.h | |||
| @@ -1,42 +1,50 @@ | |||
| 1 | /* | 1 | /* Copyright 2019 mechmerlin |
| 2 | Copyright 2019 mechmerlin | 2 | * |
| 3 | 3 | * This program is free software: you can redistribute it and/or modify | |
| 4 | 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 | 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 | the Free Software Foundation, either version 2 of the License, or | 6 | * (at your option) any later version. |
| 7 | (at your option) any later version. | 7 | * |
| 8 | 8 | * This program is distributed in the hope that it will be useful, | |
| 9 | This program is distributed in the hope that it will be useful, | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * GNU General Public License for more details. |
| 12 | GNU General Public License for more details. | 12 | * |
| 13 | 13 | * You should have received a copy of the GNU General Public License | |
| 14 | 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 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | */ |
| 16 | */ | ||
| 17 | 16 | ||
| 18 | #pragma once | 17 | #pragma once |
| 19 | 18 | ||
| 20 | #include "config_common.h" | 19 | #include "config_common.h" |
| 21 | 20 | ||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x5143 // "QC" | 22 | #define VENDOR_ID 0x5143 // "QC" |
| 23 | #define PRODUCT_ID 0x4558 // "EX" | 23 | #define PRODUCT_ID 0x4558 // "EX" |
| 24 | #define DEVICE_VER 0x0001 | 24 | #define DEVICE_VER 0x0001 |
| 25 | #define MANUFACTURER Quadcube | 25 | #define MANUFACTURER Quadcube |
| 26 | #define PRODUCT Exent | 26 | #define PRODUCT Exent |
| 27 | 27 | ||
| 28 | #define RGBLED_NUM 18 | 28 | /* key matrix size */ |
| 29 | |||
| 30 | #define MATRIX_ROWS 7 | 29 | #define MATRIX_ROWS 7 |
| 31 | #define MATRIX_COLS 14 | 30 | #define MATRIX_COLS 14 |
| 32 | 31 | ||
| 33 | // 0 1 2 3 4 5 6 7 8 9 A B C D | 32 | /* |
| 33 | * Keyboard Matrix Assignments | ||
| 34 | * | ||
| 35 | * Change this to how you wired your keyboard | ||
| 36 | * COLS: AVR pins used for columns, left to right | ||
| 37 | * ROWS: AVR pins used for rows, top to bottom | ||
| 38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 40 | * | ||
| 41 | */ | ||
| 34 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6 } | 42 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6 } |
| 35 | #define MATRIX_COL_PINS { D7, C2, C3, C4, C5, C6, C7, A7, A6, A5, A4, A3, A1, A0 } | 43 | #define MATRIX_COL_PINS { D7, C2, C3, C4, C5, C6, C7, A7, A6, A5, A4, A3, A1, A0 } |
| 36 | #define UNUSED_PINS | 44 | #define UNUSED_PINS |
| 37 | 45 | ||
| 46 | /* COL2ROW, ROW2COL */ | ||
| 38 | #define DIODE_DIRECTION COL2ROW | 47 | #define DIODE_DIRECTION COL2ROW |
| 39 | #define DEBOUNCE 5 | ||
| 40 | 48 | ||
| 41 | #define LED_NUM_LOCK_PIN D0 | 49 | #define LED_NUM_LOCK_PIN D0 |
| 42 | #define LED_CAPS_LOCK_PIN D1 | 50 | #define LED_CAPS_LOCK_PIN D1 |
| @@ -45,12 +53,33 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 45 | #define BACKLIGHT_PIN D4 | 53 | #define BACKLIGHT_PIN D4 |
| 46 | #define BACKLIGHT_LEVELS 3 | 54 | #define BACKLIGHT_LEVELS 3 |
| 47 | 55 | ||
| 56 | #define RGBLED_NUM 18 | ||
| 57 | |||
| 58 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 59 | #define DEBOUNCE 5 | ||
| 60 | |||
| 48 | #define RGBLIGHT_ANIMATIONS | 61 | #define RGBLIGHT_ANIMATIONS |
| 49 | 62 | ||
| 50 | /* key combination for magic key command */ | 63 | /* |
| 51 | /* defined by default; to change, uncomment and set to the combination you want */ | 64 | * Feature disable options |
| 52 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | 65 | * These options are also useful to firmware size reduction. |
| 66 | */ | ||
| 67 | |||
| 68 | /* disable debug print */ | ||
| 69 | //#define NO_DEBUG | ||
| 70 | |||
| 71 | /* disable print */ | ||
| 72 | //#define NO_PRINT | ||
| 73 | |||
| 74 | /* disable action features */ | ||
| 75 | //#define NO_ACTION_LAYER | ||
| 76 | //#define NO_ACTION_TAPPING | ||
| 77 | //#define NO_ACTION_ONESHOT | ||
| 78 | |||
| 79 | /* disable these deprecated features by default */ | ||
| 80 | #define NO_ACTION_MACRO | ||
| 81 | #define NO_ACTION_FUNCTION | ||
| 53 | 82 | ||
| 54 | /* Bootmagic Lite key configuration */ | 83 | /* Bootmagic Lite key configuration */ |
| 55 | // #define BOOTMAGIC_LITE_ROW 0 | 84 | //#define BOOTMAGIC_LITE_ROW 0 |
| 56 | // #define BOOTMAGIC_LITE_COLUMN 0 | 85 | //#define BOOTMAGIC_LITE_COLUMN 0 |
