diff options
Diffstat (limited to 'keyboards/monarch/config.h')
| -rw-r--r-- | keyboards/monarch/config.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/keyboards/monarch/config.h b/keyboards/monarch/config.h new file mode 100644 index 000000000..ca9e2646b --- /dev/null +++ b/keyboards/monarch/config.h | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 King Keyboards www.kingkbs.com | ||
| 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 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0x4011 | ||
| 22 | #define PRODUCT_ID 0x43C1 | ||
| 23 | #define DEVICE_VER 0x0001 | ||
| 24 | #define MANUFACTURER DoCallMeKing | ||
| 25 | #define PRODUCT Monarch | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 6 | ||
| 29 | #define MATRIX_COLS 16 | ||
| 30 | |||
| 31 | #define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B10, B2, B1, B0, A5, A7, A4, A3, B6 } | ||
| 32 | #define MATRIX_ROW_PINS { A15, B3, B11, A2, A1, B9 } | ||
| 33 | #define DIODE_DIRECTION COL2ROW | ||
| 34 | |||
| 35 | /* Rotary encoder pins */ | ||
| 36 | #define ENCODERS_PAD_A { B4 } | ||
| 37 | #define ENCODERS_PAD_B { B5 } | ||
| 38 | #define ENCODER_RESOLUTION 1 | ||
| 39 | |||
| 40 | //LEDS A6 | ||
| 41 | #define BACKLIGHT_PIN A6 | ||
| 42 | #define BACKLIGHT_PWM_DRIVER PWMD3 | ||
| 43 | #define BACKLIGHT_PWM_CHANNEL 1 | ||
| 44 | #define BACKLIGHT_PAL_MODE 1 | ||
| 45 | #define BACKLIGHT_LEVELS 24 | ||
| 46 | #define BACKLIGHT_BREATHING | ||
| 47 | #define BREATHING_PERIOD 6 | ||
| 48 | |||
| 49 | /* define if matrix has ghost */ | ||
| 50 | //#define MATRIX_HAS_GHOST | ||
| 51 | |||
| 52 | |||
| 53 | /* Set 0 if debouncing isn't needed */ | ||
| 54 | #define DEBOUNCE 5 | ||
| 55 | |||
| 56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 57 | #define LOCKING_SUPPORT_ENABLE | ||
| 58 | /* Locking resynchronize hack */ | ||
| 59 | #define LOCKING_RESYNC_ENABLE | ||
| 60 | |||
| 61 | /* | ||
| 62 | * Feature disable options | ||
| 63 | * These options are also useful to firmware size reduction. | ||
| 64 | */ | ||
| 65 | |||
| 66 | /* disable debug print */ | ||
| 67 | //#define NO_DEBUG | ||
| 68 | |||
| 69 | /* disable print */ | ||
| 70 | //#define NO_PRINT | ||
| 71 | |||
| 72 | /* disable action features */ | ||
| 73 | //#define NO_ACTION_LAYER | ||
| 74 | //#define NO_ACTION_TAPPING | ||
| 75 | //#define NO_ACTION_ONESHOT | ||
| 76 | //#define NO_ACTION_MACRO | ||
| 77 | //#define NO_ACTION_FUNCTION | ||
