aboutsummaryrefslogtreecommitdiff
path: root/keyboards/jones/v03_1/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/jones/v03_1/config.h')
-rw-r--r--keyboards/jones/v03_1/config.h166
1 files changed, 166 insertions, 0 deletions
diff --git a/keyboards/jones/v03_1/config.h b/keyboards/jones/v03_1/config.h
new file mode 100644
index 000000000..a064e5639
--- /dev/null
+++ b/keyboards/jones/v03_1/config.h
@@ -0,0 +1,166 @@
1/*
2Copyright 2020 Takeshi Nishio
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 0xFEED
24#define PRODUCT_ID 0x175A
25#define DEVICE_VER 0x0031
26#define MANUFACTURER jpskenn
27#define PRODUCT Jones
28
29/* key matrix size */
30// Same size for Jones' custom Round-Robin matrix.
31#define MATRIX_ROWS 11
32#define MATRIX_COLS 11
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43 */
44// Same pins for Jones' custom Round-Robin matrix.
45#define MATRIX_ROW_PINS { D4, D7, C7, F1, F4, F5, D6, D5, E6, B0, B1 }
46#define MATRIX_COL_PINS { D4, D7, C7, F1, F4, F5, D6, D5, E6, B0, B1 }
47#define UNUSED_PINS
48
49/* COL2ROW, ROW2COL*/
50// No need to define DIODE_DIRECTION for Jones' custom Round-Robin matrix.
51//#define DIODE_DIRECTION COL2ROW
52
53/* Rotary Encoder */
54#define ENCODERS_PAD_A { F6, B3 }
55#define ENCODERS_PAD_B { F7, B2 }
56#define ENCODER_RESOLUTION 4 //the default & suggested is 4
57
58/* Audio */
59#ifdef AUDIO_ENABLE
60 #define C6_AUDIO
61 #define B7_AUDIO // 2nd pin for simultaneous audio.
62 #define AUDIO_CLICKY
63#endif
64
65/*
66 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
67 */
68//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
69
70// #define BACKLIGHT_PIN B7
71// #define BACKLIGHT_BREATHING
72// #define BACKLIGHT_LEVELS 3
73
74#define RGB_DI_PIN F0
75#ifdef RGB_DI_PIN
76 #define RGBLED_NUM 14 // Left(4) + Right(2) + Under(8)
77 #define RGBLIGHT_LED_MAP {0,1,2,3,13,12,4,5,6,7,8,9,10,11} // Left --> Right --> Under
78 #define RGBLIGHT_HUE_STEP 8
79 #define RGBLIGHT_SAT_STEP 8
80 #define RGBLIGHT_VAL_STEP 8
81 #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
82 // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
83 /*== Lighting Layers ==*/
84 #define RGBLIGHT_LAYERS
85 // #define RGBLIGHT_MAX_LAYERS 2
86 #define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF // Overriding RGB Lighting on/off status
87 /*== all animations enable ==*/
88 // #define RGBLIGHT_ANIMATIONS
89 /*== or choose animations ==*/
90 // #define RGBLIGHT_EFFECT_BREATHING
91 // #define RGBLIGHT_EFFECT_RAINBOW_MOOD
92 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
93 // #define RGBLIGHT_EFFECT_SNAKE
94 #define RGBLIGHT_EFFECT_KNIGHT
95 // #define RGBLIGHT_EFFECT_CHRISTMAS
96 // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
97 // #define RGBLIGHT_EFFECT_RGB_TEST
98 // #define RGBLIGHT_EFFECT_ALTERNATING
99 // /*== customize breathing effect ==*/
100 // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
101 // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
102 // /*==== use exp() and sin() ====*/
103 // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
104 // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
105#endif
106
107/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
108#define DEBOUNCE 5
109
110/* define if matrix has ghost (lacks anti-ghosting diodes) */
111//#define MATRIX_HAS_GHOST
112
113/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
114// #define LOCKING_SUPPORT_ENABLE
115/* Locking resynchronize hack */
116// #define LOCKING_RESYNC_ENABLE
117
118/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
119 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
120 */
121// #define GRAVE_ESC_CTRL_OVERRIDE
122
123/*
124 * Force NKRO
125 *
126 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
127 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
128 * makefile for this to work.)
129 *
130 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
131 * until the next keyboard reset.
132 *
133 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
134 * fully operational during normal computer usage.
135 *
136 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
137 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
138 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
139 * power-up.
140 *
141 */
142//#define FORCE_NKRO
143
144/*
145 * Feature disable options
146 * These options are also useful to firmware size reduction.
147 */
148
149/* disable debug print */
150//#define NO_DEBUG
151
152/* disable print */
153//#define NO_PRINT
154
155/* disable action features */
156//#define NO_ACTION_LAYER
157//#define NO_ACTION_TAPPING
158//#define NO_ACTION_ONESHOT
159
160/* disable these deprecated features by default */
161#define NO_ACTION_MACRO
162#define NO_ACTION_FUNCTION
163
164/* Bootmagic Lite key configuration */
165// #define BOOTMAGIC_LITE_ROW 0
166// #define BOOTMAGIC_LITE_COLUMN 0