]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/clueboard/60/config.h
Clueboard refresh (#4902)
[qmk_firmware.git] / keyboards / clueboard / 60 / config.h
1 /*
2  * Copyright 2017 skully <skullydazed@gmail.com>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along 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       0xC1ED
24 #define PRODUCT_ID      0x2350
25 #define DEVICE_VER      0x0001
26 #define MANUFACTURER    Clueboard
27 #define PRODUCT         Clueboard 60%
28 #define DESCRIPTION     Clueboard 60%
29
30 /* Address for jumping to bootloader on STM32 chips. */
31 /* It is chip dependent, the correct number can be looked up here:
32  * http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
33  */
34 #define STM32_BOOTLOADER_ADDRESS 0x1FFFD800
35
36 /* key matrix size */
37 #define MATRIX_ROWS 5
38 #define MATRIX_COLS 15
39
40 /*
41  * Keyboard Matrix Assignments
42  *
43  * COLS: Pins used for columns, left to right
44  * ROWS: Pins used for rows, top to bottom
45  * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
46  *                  ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
47  *
48 */
49 #define MATRIX_ROW_PINS { B0, B1, B2, A15, A10 }
50 #define MATRIX_COL_PINS { A2, A3, A6, B14, B15, A8, A9, A7, B3, B4, C14, C15, C13, B5, B6 }
51 #define UNUSED_PINS { A0, A1, A9, B7, B8, B9, B10, B11, B12, B13 }
52 #define DIODE_DIRECTION COL2ROW
53
54 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
55 #define DEBOUNCE 6
56
57 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
58 //#define LOCKING_SUPPORT_ENABLE
59 /* Locking resynchronize hack */
60 //#define LOCKING_RESYNC_ENABLE
61
62 /*
63  * Force NKRO
64  *
65  * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
66  * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
67  * makefile for this to work.)
68  *
69  * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
70  * until the next keyboard reset.
71  *
72  * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
73  * fully operational during normal computer usage.
74  *
75  * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
76  * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
77  * bootmagic, NKRO mode will always be enabled until it is toggled again during a
78  * power-up.
79  *
80  */
81 //#define FORCE_NKRO
82
83 /* key combination for magic key command */
84 #define IS_COMMAND() ( \
85         keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
86 )
87
88 /*
89  * Feature disable options
90  *  These options are also useful to firmware size reduction.
91  */
92
93 /* disable debug print */
94 //#define NO_DEBUG
95
96 /* disable print */
97 //#define NO_PRINT
98
99 /* disable action features */
100 //#define NO_ACTION_LAYER
101 //#define NO_ACTION_TAPPING
102 //#define NO_ACTION_ONESHOT
103 //#define NO_ACTION_MACRO
104 //#define NO_ACTION_FUNCTION
105
106 /*
107  * MIDI options
108  */
109
110 /* Prevent use of disabled MIDI features in the keymap */
111 //#define MIDI_ENABLE_STRICT 1
112
113 /* enable basic MIDI features:
114    - MIDI notes can be sent when in Music mode is on
115 */
116 //#define MIDI_BASIC
117
118 /* enable advanced MIDI features:
119    - MIDI notes can be added to the keymap
120    - Octave shift and transpose
121    - Virtual sustain, portamento, and modulation wheel
122    - etc.
123 */
124 //#define MIDI_ADVANCED
125
126 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
127 //#define MIDI_TONE_KEYCODE_OCTAVES 1
128
129  /* Backlight configuration
130  */
131 #define BACKLIGHT_LEVELS 1