]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/zinc/rev1/config.h
Add user-overridable callback for cancelling UCIS input (#5564)
[qmk_firmware.git] / keyboards / zinc / rev1 / config.h
1 /*
2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2015 Jack Humbert
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #pragma once
20
21 //#ifndef REV1_CONFIG_H
22 //#define REV1_CONFIG_H
23
24 /* USB Device descriptor parameter */
25 #define VENDOR_ID       0xFEED
26 #define PRODUCT_ID      0x9991
27 #define DEVICE_VER      0x0001
28 #define MANUFACTURER    monksoffunk
29 #define PRODUCT         zinc rev.1
30 #define DESCRIPTION     A split keyboard
31
32 #define PREVENT_STUCK_MODIFIERS
33 #define TAPPING_FORCE_HOLD
34 #define TAPPING_TERM 100
35
36 /* Use I2C or Serial */
37 //#define USE_I2C
38 #define USE_SERIAL
39 //#define USE_MATRIX_I2C
40
41 /* Select hand configuration */
42 #define MASTER_LEFT
43 //#define MASTER_RIGHT
44 //#define EE_HANDS
45
46 /* key matrix size */
47 // Rows are doubled-up
48   #define MATRIX_ROWS 8
49   #define MATRIX_ROW_PINS { F6, F7, B1, B3 }
50
51 // wiring of each half
52 #define MATRIX_COLS 6
53 #define MATRIX_COL_PINS { F4, D4, C6, D7, E6, B4 }
54
55 /* define if matrix has ghost */
56 //#define MATRIX_HAS_GHOST
57
58 /* number of backlight levels */
59 // #define BACKLIGHT_LEVELS 3
60
61 /* Set 0 if debouncing isn't needed */
62 #define DEBOUNCE 5
63
64 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
65 //#define LOCKING_SUPPORT_ENABLE
66 /* Locking resynchronize hack */
67 //#define LOCKING_RESYNC_ENABLE
68
69 /* ws2812 RGB LED */
70 #define RGB_DI_PIN D3
71 #define RGBLIGHT_TIMER
72 //#define RGBLED_NUM 12    // Number of LEDs. see ./keymaps/default/config.h
73 #define ws2812_PORTREG  PORTD
74 #define ws2812_DDRREG   DDRD
75
76 // RGB LED support
77 //#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no
78 //    see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
79 #ifdef RGBLED_BACK
80   #define RGBLED_NUM 24
81 #else
82   #define RGBLED_NUM 6
83 #endif
84
85 #ifndef IOS_DEVICE_ENABLE
86   #if RGBLED_NUM <= 6
87     #define RGBLIGHT_LIMIT_VAL 255
88   #else
89     #if RGBLED_NUM <= 16
90       #define RGBLIGHT_LIMIT_VAL 130
91     #else
92       #define RGBLIGHT_LIMIT_VAL 120
93     #endif
94   #endif
95   #define RGBLIGHT_VAL_STEP 17
96 #else
97   #if RGBLED_NUM <= 6
98     #define RGBLIGHT_LIMIT_VAL 90
99   #else
100     #if RGBLED_NUM <= 16
101       #define RGBLIGHT_LIMIT_VAL 45
102     #else
103       #define RGBLIGHT_LIMIT_VAL 35
104     #endif
105   #endif
106   #define RGBLIGHT_VAL_STEP 4
107 #endif
108 #define RGBLIGHT_HUE_STEP 10
109 #define RGBLIGHT_SAT_STEP 17
110
111 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
112 // USB_MAX_POWER_CONSUMPTION value
113 //  120  RGBoff
114 //  330  RGB 6
115 //  300  RGB 32
116   #define USB_MAX_POWER_CONSUMPTION 400
117 #else
118   // fix iPhone and iPad power adapter issue
119   // iOS device need lessthan 100
120   #define USB_MAX_POWER_CONSUMPTION 100
121 #endif
122
123 /*
124  * Feature disable options
125  *  These options are also useful to firmware size reduction.
126  */
127
128 /* disable debug print */
129 // #define NO_DEBUG
130
131 /* disable print */
132 // #define NO_PRINT
133
134 /* disable action features */
135 //#define NO_ACTION_LAYER
136 //#define NO_ACTION_TAPPING
137 //#define NO_ACTION_ONESHOT
138 //#define NO_ACTION_MACRO
139 //#define NO_ACTION_FUNCTION
140
141 //#endif