aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keychron/q2/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/q2/config.h')
-rw-r--r--keyboards/keychron/q2/config.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/keyboards/keychron/q2/config.h b/keyboards/keychron/q2/config.h
new file mode 100644
index 000000000..263be4684
--- /dev/null
+++ b/keyboards/keychron/q2/config.h
@@ -0,0 +1,54 @@
1/* Copyright 2021 @ Keychron (https://www.keychron.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 */
16
17#pragma once
18
19/* USB Device descriptor parameter */
20#define VENDOR_ID 0x3434
21#define MANUFACTURER Keychron
22#define PRODUCT Keychron Q2
23
24/* key matrix size */
25#define MATRIX_ROWS 5
26#define MATRIX_COLS 15
27
28/* key matrix pins */
29#define MATRIX_ROW_PINS { B4, B3, A15, A14, A13 }
30#define MATRIX_COL_PINS { C14, C15, A0, A1, A2, A3, A4, A5, A6, A7, B0, B1, A8, A9, H3 }
31
32/* DIP switch */
33#define DIP_SWITCH_MATRIX_GRID { {4, 4} }
34
35/* COL2ROW or ROW2COL */
36#define DIODE_DIRECTION ROW2COL
37
38/* Set 0 if debouncing isn't needed */
39#define DEBOUNCE 5
40
41/* Disable DIP switch in matrix data */
42#define MATRIX_MASKED
43
44/* NKRO */
45#define FORCE_NKRO
46
47/* turn off effects when suspended */
48#define RGB_DISABLE_WHEN_USB_SUSPENDED
49
50/* Use 5 dynamic keymap layers */
51#define DYNAMIC_KEYMAP_LAYER_COUNT 5
52
53/* EEPROM Driver Configuration */
54#define EXTERNAL_EEPROM_I2C_BASE_ADDRESS 0b10100010