aboutsummaryrefslogtreecommitdiff
path: root/keyboards/qwertyydox/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/qwertyydox/config.h')
-rw-r--r--keyboards/qwertyydox/config.h199
1 files changed, 185 insertions, 14 deletions
diff --git a/keyboards/qwertyydox/config.h b/keyboards/qwertyydox/config.h
index 67f5d3c16..346795214 100644
--- a/keyboards/qwertyydox/config.h
+++ b/keyboards/qwertyydox/config.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef REV1_CONFIG_H 18#pragma once
19#define REV1_CONFIG_H
20 19
21#include "config_common.h" 20#include "config_common.h"
22 21
@@ -33,6 +32,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
33#define MATRIX_ROWS 8 32#define MATRIX_ROWS 8
34#define MATRIX_COLS 7 33#define MATRIX_COLS 7
35 34
35/*
36 * Keyboard Matrix Assignments
37 *
38 * Change this to how you wired your keyboard
39 * COLS: AVR pins used for columns, left to right
40 * ROWS: AVR pins used for rows, top to bottom
41 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
42 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
43 *
44*/
36// wiring of each half 45// wiring of each half
37#define MATRIX_ROW_PINS { B6, B2, B3, B1 } 46#define MATRIX_ROW_PINS { B6, B2, B3, B1 }
38#define MATRIX_COL_PINS { F7, F6, F5, C6, D7, D4, D1 } 47#define MATRIX_COL_PINS { F7, F6, F5, C6, D7, D4, D1 }
@@ -40,30 +49,139 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
40/* COL2ROW or ROW2COL */ 49/* COL2ROW or ROW2COL */
41#define DIODE_DIRECTION COL2ROW 50#define DIODE_DIRECTION COL2ROW
42 51
43/* define if matrix has ghost */ 52/*
44//#define MATRIX_HAS_GHOST 53 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
54 */
55#define SOFT_SERIAL_PIN D0
45 56
46/* number of backlight levels */ 57// #define BACKLIGHT_PIN E6
47// #define BACKLIGHT_LEVELS 3 58// #define BACKLIGHT_BREATHING
59// #define BACKLIGHT_LEVELS 5
48 60
49/* Set 0 if debouncing isn't needed */ 61#define RGB_DI_PIN D6
62#ifdef RGB_DI_PIN
63 #define RGBLED_NUM 12
64 #define RGBLIGHT_HUE_STEP 8
65 #define RGBLIGHT_SAT_STEP 8
66 #define RGBLIGHT_VAL_STEP 8
67 #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
68 #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
69 /*== all animations enable ==*/
70 #define RGBLIGHT_ANIMATIONS
71 // /*== or choose animations ==*/
72 // #define RGBLIGHT_EFFECT_BREATHING
73 // #define RGBLIGHT_EFFECT_RAINBOW_MOOD
74 // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
75 // #define RGBLIGHT_EFFECT_SNAKE
76 // #define RGBLIGHT_EFFECT_KNIGHT
77 // #define RGBLIGHT_EFFECT_CHRISTMAS
78 // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
79 // #define RGBLIGHT_EFFECT_RGB_TEST
80 // #define RGBLIGHT_EFFECT_ALTERNATING
81 // /*== customize breathing effect ==*/
82 // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
83 // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
84 // /*==== use exp() and sin() ====*/
85 // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
86 // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
87#endif
88
89/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
50#define DEBOUNCE 5 90#define DEBOUNCE 5
51 91
52/* serial.c configuration for split keyboard */ 92/* define if matrix has ghost (lacks anti-ghosting diodes) */
53#define SOFT_SERIAL_PIN D0 93//#define MATRIX_HAS_GHOST
54 94
55/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ 95/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
56#define LOCKING_SUPPORT_ENABLE 96#define LOCKING_SUPPORT_ENABLE
57/* Locking resynchronize hack */ 97/* Locking resynchronize hack */
58#define LOCKING_RESYNC_ENABLE 98#define LOCKING_RESYNC_ENABLE
59 99
60#define BACKLIGHT_PIN E6 100/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
61#define BACKLIGHT_LEVELS 5 101 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
102 */
103// #define GRAVE_ESC_CTRL_OVERRIDE
62 104
63/* ws2812 RGB LED */ 105/*
64#define RGB_DI_PIN D6 106 * Force NKRO
107 *
108 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
109 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
110 * makefile for this to work.)
111 *
112 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
113 * until the next keyboard reset.
114 *
115 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
116 * fully operational during normal computer usage.
117 *
118 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
119 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
120 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
121 * power-up.
122 *
123 */
124//#define FORCE_NKRO
125
126/*
127 * Magic Key Options
128 *
129 * Magic keys are hotkey commands that allow control over firmware functions of
130 * the keyboard. They are best used in combination with the HID Listen program,
131 * found here: https://www.pjrc.com/teensy/hid_listen.html
132 *
133 * The options below allow the magic key functionality to be changed. This is
134 * useful if your keyboard/keypad is missing keys and you want magic key support.
135 *
136 */
137
138/* key combination for magic key command */
139/* defined by default; to change, uncomment and set to the combination you want */
140// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
65 141
66#define RGBLED_NUM 12 // Number of LEDs 142/* control how magic key switches layers */
143//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
144//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
145//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
146
147/* override magic key keymap */
148//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
149//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
150//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
151//#define MAGIC_KEY_HELP H
152//#define MAGIC_KEY_HELP_ALT SLASH
153//#define MAGIC_KEY_DEBUG D
154//#define MAGIC_KEY_DEBUG_MATRIX X
155//#define MAGIC_KEY_DEBUG_KBD K
156//#define MAGIC_KEY_DEBUG_MOUSE M
157//#define MAGIC_KEY_VERSION V
158//#define MAGIC_KEY_STATUS S
159//#define MAGIC_KEY_CONSOLE C
160//#define MAGIC_KEY_LAYER0 0
161//#define MAGIC_KEY_LAYER0_ALT GRAVE
162//#define MAGIC_KEY_LAYER1 1
163//#define MAGIC_KEY_LAYER2 2
164//#define MAGIC_KEY_LAYER3 3
165//#define MAGIC_KEY_LAYER4 4
166//#define MAGIC_KEY_LAYER5 5
167//#define MAGIC_KEY_LAYER6 6
168//#define MAGIC_KEY_LAYER7 7
169//#define MAGIC_KEY_LAYER8 8
170//#define MAGIC_KEY_LAYER9 9
171//#define MAGIC_KEY_BOOTLOADER B
172//#define MAGIC_KEY_BOOTLOADER_ALT ESC
173//#define MAGIC_KEY_LOCK CAPS
174//#define MAGIC_KEY_EEPROM E
175//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
176//#define MAGIC_KEY_NKRO N
177//#define MAGIC_KEY_SLEEP_LED Z
178
179#define MOUSEKEY_DELAY 150
180#define MOUSEKEY_INTERVAL 20
181#define MOUSEKEY_MAX_SPEED 10
182#define MOUSEKEY_TIME_TO_MAX 10
183#define MOUSEKEY_WHEEL_MAX_SPEED 8
184#define MOUSEKEY_WHEEL_TIME_TO_MAX 40
67 185
68/* 186/*
69 * Feature disable options 187 * Feature disable options
@@ -83,4 +201,57 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
83//#define NO_ACTION_MACRO 201//#define NO_ACTION_MACRO
84//#define NO_ACTION_FUNCTION 202//#define NO_ACTION_FUNCTION
85 203
204/*
205 * MIDI options
206 */
207
208/* Prevent use of disabled MIDI features in the keymap */
209//#define MIDI_ENABLE_STRICT 1
210
211/* enable basic MIDI features:
212 - MIDI notes can be sent when in Music mode is on
213*/
214//#define MIDI_BASIC
215
216/* enable advanced MIDI features:
217 - MIDI notes can be added to the keymap
218 - Octave shift and transpose
219 - Virtual sustain, portamento, and modulation wheel
220 - etc.
221*/
222//#define MIDI_ADVANCED
223
224/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
225//#define MIDI_TONE_KEYCODE_OCTAVES 1
226
227/*
228 * HD44780 LCD Display Configuration
229 */
230/*
231#define LCD_LINES 2 //< number of visible lines of the display
232#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
233
234#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
235
236#if LCD_IO_MODE
237#define LCD_PORT PORTB //< port for the LCD lines
238#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
239#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
240#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
241#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
242#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
243#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
244#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
245#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
246#define LCD_RS_PORT LCD_PORT //< port for RS line
247#define LCD_RS_PIN 3 //< pin for RS line
248#define LCD_RW_PORT LCD_PORT //< port for RW line
249#define LCD_RW_PIN 2 //< pin for RW line
250#define LCD_E_PORT LCD_PORT //< port for Enable line
251#define LCD_E_PIN 1 //< pin for Enable line
86#endif 252#endif
253*/
254
255/* Bootmagic Lite key configuration */
256// #define BOOTMAGIC_LITE_ROW 0
257// #define BOOTMAGIC_LITE_COLUMN 0