]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/converter/modelm101/config.h
Add user-overridable callback for cancelling UCIS input (#5564)
[qmk_firmware.git] / keyboards / converter / modelm101 / config.h
1 /*
2 Copyright 2019 iw0rm3r
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       0xFEED
24 #define PRODUCT_ID      0x0000
25 #define DEVICE_VER      0x0001
26 #define MANUFACTURER    iw0rm3r
27 #define PRODUCT         IBM Model M 101/102
28 #define DESCRIPTION     Controlled by AVR chip
29
30 /* key matrix size */
31 #define MATRIX_ROWS 8
32 #define MATRIX_COLS 16
33
34 /*
35  * Keyboard Matrix Assignments
36  *
37  * Change this to how you wired your keyboard
38  * COLS: AVR pins used for columns, left to right
39  * ROWS: AVR pins used for rows, top to bottom
40  * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41  *                  ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42  *
43 */
44 #define MATRIX_ROW_PINS { F7, F6, F5, F4, F3, F2, F1, F0 }
45 #define MATRIX_COL_PINS { C7, C6, C5, C4, C3, C2, C1, C0, E1, E0, D7, D6, D5, D4, D3, D2 }
46 #define UNUSED_PINS
47
48 /* COL2ROW, ROW2COL*/
49 #define DIODE_DIRECTION ROW2COL
50
51 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed (5 is default) */
52 #define DEBOUNCE 5
53
54 /*
55  * Magic Key Options
56  *
57  * Magic keys are hotkey commands that allow control over firmware functions of
58  * the keyboard. They are best used in combination with the HID Listen program,
59  * found here: https://www.pjrc.com/teensy/hid_listen.html
60  *
61  * The options below allow the magic key functionality to be changed. This is
62  * useful if your keyboard/keypad is missing keys and you want magic key support.
63  *
64  */
65
66 /* key combination for magic key command */
67 /* defined by default; to change, uncomment and set to the combination you want */
68 // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
69
70 /* control how magic key switches layers */
71 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS  true
72 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS  true
73 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
74
75 /* override magic key keymap */
76 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
77 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
78 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
79 //#define MAGIC_KEY_HELP           H
80 //#define MAGIC_KEY_HELP_ALT       SLASH
81 //#define MAGIC_KEY_DEBUG          D
82 //#define MAGIC_KEY_DEBUG_MATRIX   X
83 //#define MAGIC_KEY_DEBUG_KBD      K
84 //#define MAGIC_KEY_DEBUG_MOUSE    M
85 //#define MAGIC_KEY_VERSION        V
86 //#define MAGIC_KEY_STATUS         S
87 //#define MAGIC_KEY_CONSOLE        C
88 //#define MAGIC_KEY_LAYER0         0
89 //#define MAGIC_KEY_LAYER0_ALT     GRAVE
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     B
100 //#define MAGIC_KEY_BOOTLOADER_ALT ESC
101 //#define MAGIC_KEY_LOCK           CAPS
102 //#define MAGIC_KEY_EEPROM         E
103 //#define MAGIC_KEY_EEPROM_CLEAR   BSPACE
104 //#define MAGIC_KEY_NKRO           N
105 //#define MAGIC_KEY_SLEEP_LED      Z
106
107 /*
108  * Feature disable options
109  *  These options are also useful to firmware size reduction.
110  */
111
112 /* disable debug print */
113 //#define NO_DEBUG
114
115 /* disable print */
116 //#define NO_PRINT
117
118 /* disable action features */
119 //#define NO_ACTION_LAYER
120 //#define NO_ACTION_TAPPING
121 //#define NO_ACTION_ONESHOT
122 //#define NO_ACTION_MACRO
123 //#define NO_ACTION_FUNCTION