diff options
Diffstat (limited to 'keyboards/pluckey/config.h')
| -rw-r--r-- | keyboards/pluckey/config.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/keyboards/pluckey/config.h b/keyboards/pluckey/config.h new file mode 100644 index 000000000..295fe93a8 --- /dev/null +++ b/keyboards/pluckey/config.h | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 floookay | ||
| 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 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0xF100 | ||
| 24 | #define PRODUCT_ID 0x91CE | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER floookay | ||
| 27 | #define PRODUCT pluckey | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | // Rows are doubled-up | ||
| 31 | #define MATRIX_ROWS 10 | ||
| 32 | #define MATRIX_COLS 7 | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Keyboard Matrix Assignments | ||
| 36 | * | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { B4, F5, F6, B6, B5 } | ||
| 44 | #define MATRIX_COL_PINS { D1, D0, D4, C6, D7, E6, F7 } | ||
| 45 | #define UNUSED_PINS { F4, B1 } | ||
| 46 | #define DIODE_DIRECTION COL2ROW | ||
| 47 | |||
| 48 | /* encoder support */ | ||
| 49 | #define ENCODERS_PAD_A { B3 } | ||
| 50 | #define ENCODERS_PAD_B { B2 } | ||
| 51 | #define ENCODER_RESOLUTION 2 | ||
| 52 | #define ENCODERS_PAD_A_RIGHT { B2 } | ||
| 53 | #define ENCODERS_PAD_B_RIGHT { B3 } | ||
| 54 | #define ENCODER_RESOLUTION_RIGHT 2 | ||
| 55 | |||
| 56 | /* communication between sides */ | ||
| 57 | #define USE_SERIAL | ||
| 58 | #define SOFT_SERIAL_PIN D2 | ||
| 59 | |||
| 60 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 61 | #define DEBOUNCE 5 | ||
| 62 | |||
| 63 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 64 | #define LOCKING_SUPPORT_ENABLE | ||
| 65 | /* Locking resynchronize hack */ | ||
| 66 | #define LOCKING_RESYNC_ENABLE | ||
| 67 | |||
| 68 | /* | ||
| 69 | * Feature disable options | ||
| 70 | * These options are also useful to firmware size reduction. | ||
| 71 | */ | ||
| 72 | |||
| 73 | /* disable debug print */ | ||
| 74 | //#define NO_DEBUG | ||
| 75 | |||
| 76 | /* disable print */ | ||
| 77 | //#define NO_PRINT | ||
| 78 | |||
| 79 | /* disable action features */ | ||
| 80 | //#define NO_ACTION_LAYER | ||
| 81 | //#define NO_ACTION_TAPPING | ||
| 82 | //#define NO_ACTION_ONESHOT | ||
| 83 | |||
| 84 | /* disable these deprecated features by default */ | ||
| 85 | #define NO_ACTION_MACRO | ||
| 86 | #define NO_ACTION_FUNCTION | ||
| 87 | |||
| 88 | /* Bootmagic Lite key configuration */ | ||
| 89 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 90 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
