]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/proton_c/config.h
1a2346d415d0ef873a19cbd3c30ecab424fcfdf1
[qmk_firmware.git] / keyboards / proton_c / config.h
1 /* Copyright 2018 Jack Humbert
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 #include "config_common.h"
20
21 /* USB Device descriptor parameter */
22 #define VENDOR_ID       0xFEED
23 #define PRODUCT_ID      0x6060
24 #define DEVICE_VER      0x0006
25 #define MANUFACTURER    QMK
26 #define PRODUCT         Proton C
27 #define DESCRIPTION     A compact ortholinear keyboard
28
29 /* key matrix size */
30 #define MATRIX_ROWS 1
31 #define MATRIX_COLS 1
32
33 #define MATRIX_ROW_PINS { B9 }
34 #define MATRIX_COL_PINS { B0 }
35
36
37 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
38 #define DEBOUNCE 6
39
40 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
41 //#define LOCKING_SUPPORT_ENABLE
42 /* Locking resynchronize hack */
43 //#define LOCKING_RESYNC_ENABLE
44
45 /*
46  * Force NKRO
47  *
48  * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
49  * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
50  * makefile for this to work.)
51  *
52  * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
53  * until the next keyboard reset.
54  *
55  * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
56  * fully operational during normal computer usage.
57  *
58  * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
59  * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
60  * bootmagic, NKRO mode will always be enabled until it is toggled again during a
61  * power-up.
62  *
63  */
64 //#define FORCE_NKRO
65
66 /* key combination for magic key command */
67 #define IS_COMMAND() ( \
68   keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
69 )
70
71 /*
72  * Feature disable options
73  *  These options are also useful to firmware size reduction.
74  */
75
76 /* disable debug print */
77 //#define NO_DEBUG
78
79 /* disable print */
80 //#define NO_PRINT
81
82 /* disable action features */
83 //#define NO_ACTION_LAYER
84 //#define NO_ACTION_TAPPING
85 //#define NO_ACTION_ONESHOT
86 //#define NO_ACTION_MACRO
87 //#define NO_ACTION_FUNCTION
88
89 /*
90  * MIDI options
91  */
92
93 /* Prevent use of disabled MIDI features in the keymap */
94 //#define MIDI_ENABLE_STRICT 1
95
96 /* enable basic MIDI features:
97    - MIDI notes can be sent when in Music mode is on
98 */
99 //#define MIDI_BASIC
100
101 /* enable advanced MIDI features:
102    - MIDI notes can be added to the keymap
103    - Octave shift and transpose
104    - Virtual sustain, portamento, and modulation wheel
105    - etc.
106 */
107 //#define MIDI_ADVANCED
108
109 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
110 //#define MIDI_TONE_KEYCODE_OCTAVES 1
111
112 // #define WS2812_LED_N 2
113 // #define RGBLED_NUM WS2812_LED_N
114 // #define WS2812_TIM_N 2
115 // #define WS2812_TIM_CH 2
116 // #define PORT_WS2812     GPIOA
117 // #define PIN_WS2812      1
118 // #define WS2812_DMA_STREAM STM32_DMA1_STREAM2  // DMA stream for TIMx_UP (look up in reference manual under DMA Channel selection)
119 //#define WS2812_DMA_CHANNEL 7                  // DMA channel for TIMx_UP
120 //#define WS2812_EXTERNAL_PULLUP
121