diff options
author | QMK Bot <hello@qmk.fm> | 2020-08-25 09:47:03 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2020-08-25 09:47:03 +0000 |
commit | b3987d7b3a5627e8ae28d9c6eec687eb0ee76c2b (patch) | |
tree | ea70f264fb310fc49caaf4b9d5b8221bfd1efa25 /keyboards/e88/config.h | |
parent | 1f09fcaa69a42cef6aeb5d18e8b37ce1842980a3 (diff) | |
download | qmk_firmware-b3987d7b3a5627e8ae28d9c6eec687eb0ee76c2b.tar.gz qmk_firmware-b3987d7b3a5627e8ae28d9c6eec687eb0ee76c2b.zip |
format code according to conventions [skip ci]
Diffstat (limited to 'keyboards/e88/config.h')
-rw-r--r-- | keyboards/e88/config.h | 216 |
1 files changed, 108 insertions, 108 deletions
diff --git a/keyboards/e88/config.h b/keyboards/e88/config.h index 5af8662fc..a077370c7 100644 --- a/keyboards/e88/config.h +++ b/keyboards/e88/config.h | |||
@@ -1,108 +1,108 @@ | |||
1 | /* Copyright 2019 Maarten Dekkers <maartenwut@gmail.com> | 1 | /* Copyright 2019 Maarten Dekkers <maartenwut@gmail.com> |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 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 | 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 | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #pragma once | 17 | #pragma once |
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | /* USB Device descriptor parameter */ | 21 | /* USB Device descriptor parameter */ |
22 | #define VENDOR_ID 0x4705 | 22 | #define VENDOR_ID 0x4705 |
23 | #define PRODUCT_ID 0x0187 | 23 | #define PRODUCT_ID 0x0187 |
24 | #define DEVICE_VER 0x0001 | 24 | #define DEVICE_VER 0x0001 |
25 | #define MANUFACTURER Pink Labs | 25 | #define MANUFACTURER Pink Labs |
26 | #define PRODUCT e88 | 26 | #define PRODUCT e88 |
27 | 27 | ||
28 | /* key matrix size */ | 28 | /* key matrix size */ |
29 | #define MATRIX_ROWS 6 | 29 | #define MATRIX_ROWS 6 |
30 | #define MATRIX_COLS 17 | 30 | #define MATRIX_COLS 17 |
31 | 31 | ||
32 | /* | 32 | /* |
33 | * Keyboard Matrix Assignments | 33 | * Keyboard Matrix Assignments |
34 | * | 34 | * |
35 | * Change this to how you wired your keyboard | 35 | * Change this to how you wired your keyboard |
36 | * COLS: AVR pins used for columns, left to right | 36 | * COLS: AVR pins used for columns, left to right |
37 | * ROWS: AVR pins used for rows, top to bottom | 37 | * ROWS: AVR pins used for rows, top to bottom |
38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | 38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) |
39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | 39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) |
40 | * | 40 | * |
41 | */ | 41 | */ |
42 | #define MATRIX_ROW_PINS { B7, D7, B4, C6, B5, B6 } | 42 | #define MATRIX_ROW_PINS { B7, D7, B4, C6, B5, B6 } |
43 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D0, D1, D2, D3, B3, B2, B1, E6, D5, D6, D4 } | 43 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D0, D1, D2, D3, B3, B2, B1, E6, D5, D6, D4 } |
44 | 44 | ||
45 | #define UNUSED_PINS {B0} | 45 | #define UNUSED_PINS {B0} |
46 | 46 | ||
47 | /* COL2ROW, ROW2COL*/ | 47 | /* COL2ROW, ROW2COL*/ |
48 | #define DIODE_DIRECTION COL2ROW | 48 | #define DIODE_DIRECTION COL2ROW |
49 | 49 | ||
50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
51 | #define DEBOUNCE 5 | 51 | #define DEBOUNCE 5 |
52 | 52 | ||
53 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 53 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
54 | //#define MATRIX_HAS_GHOST | 54 | //#define MATRIX_HAS_GHOST |
55 | 55 | ||
56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
57 | #define LOCKING_SUPPORT_ENABLE | 57 | #define LOCKING_SUPPORT_ENABLE |
58 | /* Locking resynchronize hack */ | 58 | /* Locking resynchronize hack */ |
59 | #define LOCKING_RESYNC_ENABLE | 59 | #define LOCKING_RESYNC_ENABLE |
60 | 60 | ||
61 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | 61 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. |
62 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | 62 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). |
63 | */ | 63 | */ |
64 | //#define GRAVE_ESC_CTRL_OVERRIDE | 64 | //#define GRAVE_ESC_CTRL_OVERRIDE |
65 | 65 | ||
66 | /* | 66 | /* |
67 | * Force NKRO | 67 | * Force NKRO |
68 | * | 68 | * |
69 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | 69 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved |
70 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | 70 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the |
71 | * makefile for this to work.) | 71 | * makefile for this to work.) |
72 | * | 72 | * |
73 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | 73 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) |
74 | * until the next keyboard reset. | 74 | * until the next keyboard reset. |
75 | * | 75 | * |
76 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | 76 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is |
77 | * fully operational during normal computer usage. | 77 | * fully operational during normal computer usage. |
78 | * | 78 | * |
79 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | 79 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) |
80 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | 80 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by |
81 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | 81 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a |
82 | * power-up. | 82 | * power-up. |
83 | * | 83 | * |
84 | */ | 84 | */ |
85 | //#define FORCE_NKRO | 85 | //#define FORCE_NKRO |
86 | 86 | ||
87 | /* | 87 | /* |
88 | * Feature disable options | 88 | * Feature disable options |
89 | * These options are also useful to firmware size reduction. | 89 | * These options are also useful to firmware size reduction. |
90 | */ | 90 | */ |
91 | 91 | ||
92 | /* disable debug print */ | 92 | /* disable debug print */ |
93 | //#define NO_DEBUG | 93 | //#define NO_DEBUG |
94 | 94 | ||
95 | /* disable print */ | 95 | /* disable print */ |
96 | //#define NO_PRINT | 96 | //#define NO_PRINT |
97 | 97 | ||
98 | /* disable action features */ | 98 | /* disable action features */ |
99 | //#define NO_ACTION_LAYER | 99 | //#define NO_ACTION_LAYER |
100 | //#define NO_ACTION_TAPPING | 100 | //#define NO_ACTION_TAPPING |
101 | //#define NO_ACTION_ONESHOT | 101 | //#define NO_ACTION_ONESHOT |
102 | 102 | ||
103 | /* disable these deprecated features by default */ | 103 | /* disable these deprecated features by default */ |
104 | #define NO_ACTION_MACRO | 104 | #define NO_ACTION_MACRO |
105 | #define NO_ACTION_FUNCTION | 105 | #define NO_ACTION_FUNCTION |
106 | 106 | ||
107 | #define QMK_ESC_OUTPUT F0 // usually COL | 107 | #define QMK_ESC_OUTPUT F0 // usually COL |
108 | #define QMK_ESC_INPUT B7 // usually ROW | 108 | #define QMK_ESC_INPUT B7 // usually ROW |