forked from solartempest/ps17
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
145 lines (130 loc) · 5.01 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/* Copyright
* 2021 solartempest
* 2021 QMK
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
// USB Device descriptor parameter
#define VENDOR_ID 0x414B // "AK"
#define PRODUCT_ID 0x0015
#define DEVICE_VER 0x0002 // Ver2
#define MANUFACTURER ATLANTIS
#define PRODUCT PS17
//#define ENCODER_RESOLUTION 2 // default is 4
// key matrix size
#ifdef RGBLIGHT_ENABLE
#define MATRIX_ROWS 6
#endif
#ifdef RGB_MATRIX_ENABLE
#define MATRIX_ROWS 11 //Numpad actually has 6 rows. 5 rows were added for underglow RGB matrix to work together
#endif
#define MATRIX_COLS 4
// Encoder matrix
#define ENCODERS_PAD_A { D1 }
#define ENCODERS_PAD_B { D2 }
//#define ENCODER_DIRECTION_FLIP
#define MATRIX_ROW_PINS { F0, B4, B5, B6, C6, C7 } //Rotary encoder SPST is on F0,F7
#define MATRIX_COL_PINS { F6, F7, D3, D6 }
#define UNUSED_PINS
// COL2ROW or ROW2COL
#define DIODE_DIRECTION COL2ROW
// For LED status indicators
#define LED_NUM_LOCK_PIN D0
#define LED_CAPS_LOCK_PIN D5
#define LED_SCROLL_LOCK_PIN D4
#define LED_PIN_ON_STATE 0
#define RGB_DI_PIN B7
#ifdef RGBLIGHT_ENABLE
#define RGBLED_NUM 28 // 17 key + 11 underglow for RGBLIGHT
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_DEFAULT_VAL 40 // default brightness on clearing EEPROM
#define RGBLIGHT_LIMIT_VAL 180 // brightness level max is 255
#define RGBLIGHT_LAYERS
#define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
#define RGBLIGHT_SLEEP // if defined, RGB lighting off when host is sleeping
#define RGBLIGHT_ANIMATIONS
//RGB LED Conversion macro from physical array to electric array
//First section is the LED matrix, second section is the electrical wiring order, and the third section is the desired mapping
#define LED_LAYOUT( \
L00, L05, \
L10, L15, \
L20, L21, L22, L23, L24, L25, \
L31, L32, L33, L34, \
L40, L41, L42, L43, L45, \
L51, L52, L53, L54, \
L60, L61, L62, L63, L65 ) \
{ \
L21,L22,L23,L24,L31,L32,L33,L34,L41,L42,L43,L51,L52,L53,L54,L61,L63,L60,L40,L20,L10,L00,L05,L15,L25,L45,L65,L62, \
}
//RGB LED logical order map
//Right->Left, Top->Bottom
#define RGBLIGHT_LED_MAP LED_LAYOUT( \
1, 0, \
3, 2, \
9, 8, 7, 6, 5, 4, \
13, 12, 11, 10, \
18, 17, 16, 15, 14, \
22, 21, 20, 19, \
27, 26, 25, 24, 23 )
#endif
#ifdef RGB_MATRIX_ENABLE // For dynamic RGB Matrix effects
#define DRIVER_LED_TOTAL 28 // The number of LEDs connected for matrix, 17 key + 11 underglow
#define RGB_MATRIX_CENTER { 126, 126 };
#define RGB_MATRIX_KEYPRESSES
#define DISABLE_RGB_MATRIX_ALPHAS_MODS //Remove effects not desired
#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
#define DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
#define DISABLE_RGB_MATRIX_BAND_SAT
#define DISABLE_RGB_MATRIX_BAND_VAL
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
#define DISABLE_RGB_MATRIX_CYCLE_ALL
#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
#define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
#define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL
#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
#define DISABLE_RGB_MATRIX_DUAL_BEACON
#define DISABLE_RGB_MATRIX_RAINBOW_BEACON
#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
#define DISABLE_RGB_MATRIX_RAINDROPS
#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
#define DISABLE_RGB_MATRIX_HUE_BREATHING
#define DISABLE_RGB_MATRIX_HUE_PENDULUM
#define DISABLE_RGB_MATRIX_HUE_WAVE
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
#define DISABLE_RGB_MATRIX_SPLASH
#define DISABLE_RGB_MATRIX_MULTISPLASH
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
#endif
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define COMBO_COUNT 6 //Number of tap combos used
#define COMBO_TERM 350 //Default combo time is 200ms
#define TAPPING_TERM 200 //Tap dance time