aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mntre/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mntre/config.h')
-rw-r--r--keyboards/mntre/config.h101
1 files changed, 101 insertions, 0 deletions
diff --git a/keyboards/mntre/config.h b/keyboards/mntre/config.h
new file mode 100644
index 000000000..9ee3d3f27
--- /dev/null
+++ b/keyboards/mntre/config.h
@@ -0,0 +1,101 @@
1// Copyright 2021 Cedric Vincent (@cdc-mkb)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "config_common.h"
7
8/* USB Device descriptor parameter */
9#define VENDOR_ID 0xFEED
10#define PRODUCT_ID 0x1302
11#define DEVICE_VER 0x0002
12#define MANUFACTURER MNT Research GmbH
13#define PRODUCT MNT Reform USB Keyboard (Standalone)
14
15/* key matrix size */
16#define MATRIX_ROWS 6
17#define MATRIX_COLS 14
18
19/*
20 * Keyboard Matrix Assignments
21 *
22 * Change this to how you wired your keyboard
23 * COLS: AVR pins used for columns, left to right
24 * ROWS: AVR pins used for rows, top to bottom
25 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
26 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
27 *
28 */
29#define MATRIX_ROW_PINS { B6, B5, B4, D7, D6, D4 }
30#define MATRIX_COL_PINS { D5, F7, E6, C7, B3, B2, B1, B0, F0, F1, F4, F5, F6, C6 }
31#define UNUSED_PINS
32
33/* COL2ROW, ROW2COL */
34#define DIODE_DIRECTION COL2ROW
35
36#define BACKLIGHT_PIN B7
37#define BACKLIGHT_CUSTOM_RESOLUTION 0x400
38#define BACKLIGHT_LIMIT_VAL 84
39//#define BACKLIGHT_LEVELS 3
40//#define BACKLIGHT_BREATHING
41
42/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
43#define DEBOUNCE 5
44
45/* define if matrix has ghost (lacks anti-ghosting diodes) */
46//#define MATRIX_HAS_GHOST
47
48/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
49#define LOCKING_SUPPORT_ENABLE
50/* Locking resynchronize hack */
51#define LOCKING_RESYNC_ENABLE
52
53/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
54 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
55 */
56//#define GRAVE_ESC_CTRL_OVERRIDE
57
58/*
59 * Force NKRO
60 *
61 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
62 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
63 * makefile for this to work.)
64 *
65 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
66 * until the next keyboard reset.
67 *
68 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
69 * fully operational during normal computer usage.
70 *
71 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
72 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
73 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
74 * power-up.
75 *
76 */
77//#define FORCE_NKRO
78
79/*
80 * Feature disable options
81 * These options are also useful to firmware size reduction.
82 */
83
84/* disable debug print */
85//#define NO_DEBUG
86
87/* disable print */
88//#define NO_PRINT
89
90/* disable action features */
91//#define NO_ACTION_LAYER
92//#define NO_ACTION_TAPPING
93//#define NO_ACTION_ONESHOT
94
95/* disable these deprecated features by default */
96#define NO_ACTION_MACRO
97#define NO_ACTION_FUNCTION
98
99/* Bootmagic Lite key configuration */
100//#define BOOTMAGIC_LITE_ROW 0
101//#define BOOTMAGIC_LITE_COLUMN 0