aboutsummaryrefslogtreecommitdiff
path: root/keyboards/wekey/we27/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/wekey/we27/config.h')
-rw-r--r--keyboards/wekey/we27/config.h219
1 files changed, 219 insertions, 0 deletions
diff --git a/keyboards/wekey/we27/config.h b/keyboards/wekey/we27/config.h
new file mode 100644
index 000000000..332b476a4
--- /dev/null
+++ b/keyboards/wekey/we27/config.h
@@ -0,0 +1,219 @@
1/*
2Copyright 2021 @wekey
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x5559
24#define PRODUCT_ID 0x0001
25#define DEVICE_VER 0x0001
26#define MANUFACTURER @wekey
27#define PRODUCT We27
28
29/* key matrix size */
30#define MATRIX_ROWS 6
31#define MATRIX_COLS 5
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { F1, D7, B4, B5, B6, F6 }
44#define MATRIX_COL_PINS { F4, F5, C7, D6, D4 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/*
51 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
52 */
53// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
54
55#ifdef RGB_MATRIX_ENABLE
56// The pin connected to the data pin of the LEDs
57#define RGB_DI_PIN C6
58// The number of LEDs connected
59#define DRIVER_LED_TOTAL 27
60
61#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
62#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
63#define RGB_MATRIX_STARTUP_HUE 108 // Sets the default hue value, if none has been set
64#define RGB_MATRIX_STARTUP_SAT 255 // Sets the default saturation value, if none has been set
65#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set
66#define RGB_MATRIX_STARTUP_SPD 127 // Sets the default animation speed, if none has been set
67#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR // Sets the default mode, if none has been set
68
69#define DISABLE_RGB_MATRIX_ALPHAS_MODS
70#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
71#define DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
72#define DISABLE_RGB_MATRIX_BREATHING
73#define DISABLE_RGB_MATRIX_BAND_SAT // *
74#define DISABLE_RGB_MATRIX_BAND_VAL
75#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
76#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
77#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
78#define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
79#define DISABLE_RGB_MATRIX_CYCLE_ALL
80#define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
81#define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN
82#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
83#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
84// #define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // *
85#define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL
86#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
87#define DISABLE_RGB_MATRIX_DUAL_BEACON
88#define DISABLE_RGB_MATRIX_RAINBOW_BEACON
89#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
90#define DISABLE_RGB_MATRIX_RAINDROPS
91#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
92#define DISABLE_RGB_MATRIX_HUE_BREATHING
93#define DISABLE_RGB_MATRIX_HUE_PENDULUM
94#define DISABLE_RGB_MATRIX_HUE_WAVE
95#define DISABLE_RGB_MATRIX_TYPING_HEATMAP
96#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
97#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
98#define DISABLE_RGB_MATRIX_SOLID_REACTIVE
99#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
100#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
101#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
102#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
103#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
104#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
105#define DISABLE_RGB_MATRIX_SPLASH
106#define DISABLE_RGB_MATRIX_MULTISPLASH
107#define DISABLE_RGB_MATRIX_SOLID_SPLASH
108#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
109
110#endif
111
112#ifdef ENCODER_ENABLE
113#define ENCODERS_PAD_A { D3 }
114#define ENCODERS_PAD_B { D2 }
115#define ENCODER_RESOLUTION 2
116
117#define ENCODERS 1
118#define ENCODERS_CW_KEY { { 4, 5 } }
119#define ENCODERS_CCW_KEY { { 4, 3 } }
120#endif
121
122//#define LED_NUM_LOCK_PIN B0
123//#define LED_CAPS_LOCK_PIN B1
124//#define LED_SCROLL_LOCK_PIN B2
125//#define LED_COMPOSE_PIN B3
126//#define LED_KANA_PIN B4
127
128//#define BACKLIGHT_PIN B7
129//#define BACKLIGHT_LEVELS 3
130//#define BACKLIGHT_BREATHING
131
132//#define RGB_DI_PIN E2
133//#ifdef RGB_DI_PIN
134//# define RGBLED_NUM 16
135//# define RGBLIGHT_HUE_STEP 8
136//# define RGBLIGHT_SAT_STEP 8
137//# define RGBLIGHT_VAL_STEP 8
138//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
139//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
140/*== all animations enable ==*/
141//# define RGBLIGHT_ANIMATIONS
142/*== or choose animations ==*/
143//# define RGBLIGHT_EFFECT_BREATHING
144//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
145//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
146//# define RGBLIGHT_EFFECT_SNAKE
147//# define RGBLIGHT_EFFECT_KNIGHT
148//# define RGBLIGHT_EFFECT_CHRISTMAS
149//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
150//# define RGBLIGHT_EFFECT_RGB_TEST
151//# define RGBLIGHT_EFFECT_ALTERNATING
152/*== customize breathing effect ==*/
153/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
154//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
155/*==== use exp() and sin() ====*/
156//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
157//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
158//#endif
159
160/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
161#define DEBOUNCE 5
162
163/* define if matrix has ghost (lacks anti-ghosting diodes) */
164//#define MATRIX_HAS_GHOST
165
166/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
167#define LOCKING_SUPPORT_ENABLE
168/* Locking resynchronize hack */
169#define LOCKING_RESYNC_ENABLE
170
171/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
172 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
173 */
174//#define GRAVE_ESC_CTRL_OVERRIDE
175
176/*
177 * Force NKRO
178 *
179 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
180 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
181 * makefile for this to work.)
182 *
183 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
184 * until the next keyboard reset.
185 *
186 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
187 * fully operational during normal computer usage.
188 *
189 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
190 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
191 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
192 * power-up.
193 *
194 */
195//#define FORCE_NKRO
196
197/*
198 * Feature disable options
199 * These options are also useful to firmware size reduction.
200 */
201
202/* disable debug print */
203//#define NO_DEBUG
204
205/* disable print */
206//#define NO_PRINT
207
208/* disable action features */
209//#define NO_ACTION_LAYER
210//#define NO_ACTION_TAPPING
211//#define NO_ACTION_ONESHOT
212
213/* disable these deprecated features by default */
214#define NO_ACTION_MACRO
215#define NO_ACTION_FUNCTION
216
217/* Bootmagic Lite key configuration */
218//#define BOOTMAGIC_LITE_ROW 0
219//#define BOOTMAGIC_LITE_COLUMN 0