]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/rgbkb/zygomorph/rev1/config.h
Remove the need to specify NUM_OF_ENCODERS for the Encoder feature (#6328)
[qmk_firmware.git] / keyboards / rgbkb / zygomorph / 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 /* USB Device descriptor parameter */
22 #define VENDOR_ID       0xFEED
23 #define PRODUCT_ID      0x3060
24 #define DEVICE_VER      0x0001
25 #define MANUFACTURER    RGBKB
26 #define PRODUCT         Zygomorph
27 #define DESCRIPTION     "RGB, thin, ortholinear"
28
29 /* Select hand configuration */
30 #define EE_HANDS
31
32 /* key matrix size */
33 // Rows are doubled-up
34 #define MATRIX_ROWS 10
35 #define MATRIX_ROW_PINS { F1, F5, F7, B5, B4 }
36
37 // wiring of each half
38 #define MATRIX_COLS 6
39 #define MATRIX_COL_PINS { F4, F6, C7, C6, B6, D4 }
40
41 #define SOFT_SERIAL_PIN D3
42
43 #define ENCODERS_PAD_A  { D2 }
44 #define ENCODERS_PAD_B  { D7 }
45
46 /* Set 0 if debouncing isn't needed */
47 #define DEBOUNCE 5
48
49 /* ws2812 RGB LED */
50 #define RGB_DI_PIN B7
51 #ifndef RGBLIGHT_SPLIT_ENABLE
52     #define RGBLED_NUM 30
53 #else
54     #define RGBLED_NUM 60
55     #define RGBLED_SPLIT { 30, 30 }
56 #endif
57 #define DRIVER_LED_TOTAL 30
58
59 #ifdef IOS_DEVICE_ENABLE
60   #define RGBLIGHT_LIMIT_VAL 40
61   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 40
62 #elif RGBLIGHT_FULL_POWER
63   #define RGBLIGHT_LIMIT_VAL 255
64   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
65 #else
66   #define RGBLIGHT_LIMIT_VAL 120
67   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
68 #endif
69
70 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
71 // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
72 //  120  RGBoff, OLEDoff
73 //  120  OLED
74 //  330  RGB 6
75 //  300  RGB 32
76 //  310  OLED & RGB 32
77   #define USB_MAX_POWER_CONSUMPTION 500
78 #else
79   // fix iPhone and iPad power adapter issue
80   // iOS device need lessthan 100
81   #define USB_MAX_POWER_CONSUMPTION 100
82 #endif
83
84 /*
85  * Feature disable options
86  *  These options are also useful to firmware size reduction.
87  */
88
89 /* disable debug print */
90 // #define NO_DEBUG
91
92 /* disable print */
93 // #define NO_PRINT
94
95 /* disable action features */
96 //#define NO_ACTION_LAYER
97 //#define NO_ACTION_TAPPING
98 //#define NO_ACTION_ONESHOT
99 //#define NO_ACTION_MACRO
100 //#define NO_ACTION_FUNCTION