]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/rgbkb/zygomorph/rev1/config.h
ad58761cc5249fc0c7962aa0183ffe681d1ddca7
[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 NUMBER_OF_ENCODERS 1
44 #define ENCODERS_PAD_A  { D2 }
45 #define ENCODERS_PAD_B  { D7 }
46
47 /* Set 0 if debouncing isn't needed */
48 #define DEBOUNCE 5
49
50 /* ws2812 RGB LED */
51 #define RGB_DI_PIN B7
52 #ifndef RGBLIGHT_SPLIT_ENABLE
53     #define RGBLED_NUM 30
54 #else
55     #define RGBLED_NUM 60
56     #define RGBLED_SPLIT { 30, 30 }
57 #endif
58 #define DRIVER_LED_TOTAL 30
59
60 #ifdef IOS_DEVICE_ENABLE
61   #define RGBLIGHT_LIMIT_VAL 40
62   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 40
63 #elif RGBLIGHT_FULL_POWER
64   #define RGBLIGHT_LIMIT_VAL 255
65   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
66 #else
67   #define RGBLIGHT_LIMIT_VAL 120
68   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
69 #endif
70
71 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
72 // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
73 //  120  RGBoff, OLEDoff
74 //  120  OLED
75 //  330  RGB 6
76 //  300  RGB 32
77 //  310  OLED & RGB 32
78   #define USB_MAX_POWER_CONSUMPTION 500
79 #else
80   // fix iPhone and iPad power adapter issue
81   // iOS device need lessthan 100
82   #define USB_MAX_POWER_CONSUMPTION 100
83 #endif
84
85 /*
86  * Feature disable options
87  *  These options are also useful to firmware size reduction.
88  */
89
90 /* disable debug print */
91 // #define NO_DEBUG
92
93 /* disable print */
94 // #define NO_PRINT
95
96 /* disable action features */
97 //#define NO_ACTION_LAYER
98 //#define NO_ACTION_TAPPING
99 //#define NO_ACTION_ONESHOT
100 //#define NO_ACTION_MACRO
101 //#define NO_ACTION_FUNCTION