aboutsummaryrefslogtreecommitdiff
path: root/keyboards/boardsource/3x4/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/boardsource/3x4/config.h')
-rw-r--r--keyboards/boardsource/3x4/config.h144
1 files changed, 144 insertions, 0 deletions
diff --git a/keyboards/boardsource/3x4/config.h b/keyboards/boardsource/3x4/config.h
new file mode 100644
index 000000000..95c6f9ac2
--- /dev/null
+++ b/keyboards/boardsource/3x4/config.h
@@ -0,0 +1,144 @@
1
2
3#pragma once
4
5#include "config_common.h"
6
7/* USB Device descriptor parameter */
8#define VENDOR_ID 0xF7E0
9#define PRODUCT_ID 0x0412
10#define DEVICE_VER 0x0000
11#define MANUFACTURER Boardsource
12#define PRODUCT 3x4
13#define DESCRIPTION Little macro pad
14
15/* key matrix size */
16#define MATRIX_ROWS 3
17#define MATRIX_COLS 4
18
19#define MATRIX_ROW_PINS { F7, F6, F5,}
20#define MATRIX_COL_PINS {B6, B2, B3, B1}
21
22#define DIODE_DIRECTION COL2ROW
23
24#define DEBOUNCE 5
25
26/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
27#define LOCKING_SUPPORT_ENABLE
28/* Locking resynchronize hack */
29#define LOCKING_RESYNC_ENABLE
30
31/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
32 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
33 */
34// #define GRAVE_ESC_CTRL_OVERRIDE
35
36/*
37 * Force NKRO
38 *
39 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
40 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
41 * makefile for this to work.)
42 *
43 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
44 * until the next keyboard reset.
45 *
46 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
47 * fully operational during normal computer usage.
48 *
49 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
50 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
51 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
52 * power-up.
53 *
54 */
55//#define FORCE_NKRO
56
57/*
58 * Magic Key Options
59 *
60 * Magic keys are hotkey commands that allow control over firmware functions of
61 * the keyboard. They are best used in combination with the HID Listen program,
62 * found here: https://www.pjrc.com/teensy/hid_listen.html
63 *
64 * The options below allow the magic key functionality to be changed. This is
65 * useful if your keyboard/keypad is missing keys and you want magic key support.
66 *
67 */
68
69/* control how magic key switches layers */
70//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
71//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
72//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
73
74/* override magic key keymap */
75//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
76//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
77//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
78//#define MAGIC_KEY_HELP1 H
79//#define MAGIC_KEY_HELP2 SLASH
80//#define MAGIC_KEY_DEBUG D
81//#define MAGIC_KEY_DEBUG_MATRIX X
82//#define MAGIC_KEY_DEBUG_KBD K
83//#define MAGIC_KEY_DEBUG_MOUSE M
84//#define MAGIC_KEY_VERSION V
85//#define MAGIC_KEY_STATUS S
86//#define MAGIC_KEY_CONSOLE C
87//#define MAGIC_KEY_LAYER0_ALT1 ESC
88//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
89//#define MAGIC_KEY_LAYER0 0
90//#define MAGIC_KEY_LAYER1 1
91//#define MAGIC_KEY_LAYER2 2
92//#define MAGIC_KEY_LAYER3 3
93//#define MAGIC_KEY_LAYER4 4
94//#define MAGIC_KEY_LAYER5 5
95//#define MAGIC_KEY_LAYER6 6
96//#define MAGIC_KEY_LAYER7 7
97//#define MAGIC_KEY_LAYER8 8
98//#define MAGIC_KEY_LAYER9 9
99//#define MAGIC_KEY_BOOTLOADER PAUSE
100//#define MAGIC_KEY_LOCK CAPS
101//#define MAGIC_KEY_EEPROM E
102//#define MAGIC_KEY_NKRO N
103//#define MAGIC_KEY_SLEEP_LED Z
104
105/*
106 * Feature disable options
107 * These options are also useful to firmware size reduction.
108 */
109
110/* disable debug print */
111//#define NO_DEBUG
112
113/* disable print */
114//#define NO_PRINT
115
116/* disable action features */
117//#define NO_ACTION_LAYER
118//#define NO_ACTION_TAPPING
119//#define NO_ACTION_ONESHOT
120//#define NO_ACTION_MACRO
121//#define NO_ACTION_FUNCTION
122
123/*
124 * MIDI options
125 */
126
127/* Prevent use of disabled MIDI features in the keymap */
128//#define MIDI_ENABLE_STRICT 1
129
130/* enable basic MIDI features:
131 - MIDI notes can be sent when in Music mode is on
132*/
133//#define MIDI_BASIC
134
135/* enable advanced MIDI features:
136 - MIDI notes can be added to the keymap
137 - Octave shift and transpose
138 - Virtual sustain, portamento, and modulation wheel
139 - etc.
140*/
141//#define MIDI_ADVANCED
142
143/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
144//#define MIDI_TONE_KEYCODE_OCTAVES 1