aboutsummaryrefslogtreecommitdiff
path: root/keyboards/xenon/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xenon/config.h')
-rw-r--r--keyboards/xenon/config.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/keyboards/xenon/config.h b/keyboards/xenon/config.h
new file mode 100644
index 000000000..b14861140
--- /dev/null
+++ b/keyboards/xenon/config.h
@@ -0,0 +1,65 @@
1/*
2Copyright 2020 Kyrre Havik Eriksen
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along 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 0xFEED
24#define PRODUCT_ID 0x3404
25#define DEVICE_VER 0x0001
26#define PRODUCT Xenon
27
28/* key matrix size */
29/* Rows are doubled up */
30#define MATRIX_ROWS 10
31#define MATRIX_COLS 7
32
33// wiring
34#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
35#define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 }
36
37#define ENCODERS_PAD_A { B6 }
38#define ENCODERS_PAD_B { B5 }
39
40/* COL2ROW, ROW2COL*/
41#define DIODE_DIRECTION COL2ROW
42
43/* define if matrix has ghost (lacks anti-ghosting diodes) */
44//#define MATRIX_HAS_GHOST
45
46/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
47#define DEBOUNCE 5
48
49/*
50 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
51 */
52#define SOFT_SERIAL_PIN D2
53
54/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55#define LOCKING_SUPPORT_ENABLE
56/* Locking resynchronize hack */
57#define LOCKING_RESYNC_ENABLE
58
59#ifdef OLED_ENABLE
60 #define OLED_DISPLAY_128X32
61#endif
62
63// If you are using an Elite C rev3 on the slave side, uncomment the lines below:
64// #define SPLIT_USB_DETECT
65// #define NO_USB_STARTUP_CHECK