]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ergoinu/config.h
Remove more commented out MCUs
[qmk_firmware.git] / keyboards / ergoinu / config.h
1 /*
2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2015 Jack Humbert
4 Copyright 2018 Takuya Urakawa<twitter:@hsgw>
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 #pragma once
21
22 #include "config_common.h"
23 #include <serial_config.h>
24
25 /* USB Device descriptor parameter
26    VID & PID are lisenced from microchip sublisence program, Don't use other project! */
27 #define VENDOR_ID       0x04D8
28 #define PRODUCT_ID      0xEE60
29 #define DEVICE_VER      0x0001
30 #define MANUFACTURER    Dm9Records
31 #define PRODUCT         ergoinu
32 #define DESCRIPTION     An (Not Portable But Small) Ergonomic split keyboard
33
34 #define TAPPING_FORCE_HOLD
35 #define TAPPING_TERM 100
36
37 #define USE_SERIAL
38
39 /* Select hand configuration */
40 #define MASTER_LEFT
41 // #define MASTER_RIGHT
42 // #define EE_HANDS
43
44 /* key matrix size */
45 // Rows are doubled-up
46 #define MATRIX_ROWS 10
47 #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2 }
48
49 // wiring of each half
50 #define MATRIX_COLS 7
51 #define MATRIX_COL_PINS { B4, E6, D7, C6, D4, F5, F4 }
52
53 /* define if matrix has ghost */
54 //#define MATRIX_HAS_GHOST
55
56 /* number of backlight levels */
57 // #define BACKLIGHT_LEVELS 3
58
59 /* Set 0 if debouncing isn't needed */
60 #define DEBOUNCE 5
61
62 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
63 //#define LOCKING_SUPPORT_ENABLE
64 /* Locking resynchronize hack */
65 //#define LOCKING_RESYNC_ENABLE
66
67 /* ws2812 RGB LED */
68 #define RGB_DI_PIN B6
69
70 #define RGBLED_NUM 7
71
72 #ifndef IOS_DEVICE_ENABLE
73   #if RGBLED_NUM <= 7
74     #define RGBLIGHT_LIMIT_VAL 255
75     #define RGBLIGHT_VAL_STEP 17
76   #endif
77 #else
78   #define RGBLIGHT_LIMIT_VAL 90
79   #define RGBLIGHT_VAL_STEP 4
80 #endif
81
82 #define RGBLIGHT_HUE_STEP 10
83 #define RGBLIGHT_SAT_STEP 17
84
85 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
86   #define USB_MAX_POWER_CONSUMPTION 500
87 #else
88   // fix iPhone and iPad power adapter issue
89   // iOS device need lessthan 100
90   #define USB_MAX_POWER_CONSUMPTION 100
91 #endif
92
93 /*
94  * Feature disable options
95  *  These options are also useful to firmware size reduction.
96  */
97
98 /* disable debug print */
99 // #define NO_DEBUG
100
101 /* disable print */
102 // #define NO_PRINT
103
104 /* disable action features */
105 //#define NO_ACTION_LAYER
106 //#define NO_ACTION_TAPPING
107 //#define NO_ACTION_ONESHOT
108 //#define NO_ACTION_MACRO
109 //#define NO_ACTION_FUNCTION