]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ergo42/rev1/config.h
Add support for 7x4 ortholinear split KB Ergo42
[qmk_firmware.git] / keyboards / ergo42 / rev1 / config.h
1 /*
2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2015 Jack Humbert
4 Copyright 2017 Biacco42
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef REV1_CONFIG_H
21 #define REV1_CONFIG_H
22
23 #include "config_common.h"
24
25 /* USB Device descriptor parameter */
26 #define VENDOR_ID       0xBC42
27 #define PRODUCT_ID      0x0042
28 #define DEVICE_VER      0x0100
29 #define MANUFACTURER    Biacco42
30 #define PRODUCT         Ergo42
31 #define DESCRIPTION     The Answer to the Ultimate Question of Life, the Universe, and at least Keyboards
32
33 /* key matrix size */
34 // Rows are doubled-up
35 #define MATRIX_ROWS 8
36 #define MATRIX_COLS 7
37
38 // wiring of each half
39 #define MATRIX_ROW_PINS { D7, E6, B4, B5 }
40 #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 }
41 // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6 } //uncomment this line and comment line above if you need to reverse left-to-right key order
42
43 #define CATERINA_BOOTLOADER
44
45 /* define tapping term */
46 #define TAPPING_TERM 120
47
48 /* define if matrix has ghost */
49 //#define MATRIX_HAS_GHOST
50
51 /* number of backlight levels */
52 // #define BACKLIGHT_LEVELS 3
53
54 /* Set 0 if debouncing isn't needed */
55 #define DEBOUNCING_DELAY 5
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 /* key combination for command */
63 #define IS_COMMAND() ( \
64     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
65 )
66
67 /* ws2812 RGB LED */
68 #define RGB_DI_PIN D3
69 #define RGBLIGHT_TIMER
70 #define RGBLED_NUM 12    // Number of LEDs
71 #define ws2812_PORTREG  PORTD
72 #define ws2812_DDRREG   DDRD
73
74 /*
75  * Feature disable options
76  *  These options are also useful to firmware size reduction.
77  */
78
79 /* disable debug print */
80 // #define NO_DEBUG
81
82 /* disable print */
83 // #define NO_PRINT
84
85 /* disable action features */
86 //#define NO_ACTION_LAYER
87 //#define NO_ACTION_TAPPING
88 //#define NO_ACTION_ONESHOT
89 //#define NO_ACTION_MACRO
90 //#define NO_ACTION_FUNCTION
91
92
93 #endif