forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 26
/
config.h
executable file
·109 lines (75 loc) · 2.46 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
/*
Copyright 2012 Jun Wako <[email protected]>
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:https://www.gnu.org/licenses/>.
*/
#ifndef CONFIG_H
#define CONFIG_H
#include "config_common.h"
/* USB Device descriptor parameter */
#define VENDOR_ID 0xAA96
#define PRODUCT_ID 0xAA00
#define DEVICE_VER 0x0001
#define RAW_USAGE_PAGE 0xFF60
#define MANUFACTURER yrstudio Jason Ren and magic mvp
#define PRODUCT rainboM32 based 65 keyboard with full rgb, oled and encoder.
/* key matrix set */
#define MATRIX_ROWS 5
#define MATRIX_COLS 15
#define MATRIX_ROW_PINS { B5, B4, A3, A2, B9 }
#define MATRIX_COL_PINS { A10, A9, A8, B14, B13, B12, B11, B10, B1, B0, A7, A6, A5, A4, B8 }
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
// enable the nkro when using the VIA.
#define FORCE_NKRO
// fix VIA RGB_light
#define VIA_HAS_BROKEN_KEYCODES
#ifdef RGBLIGHT_ENABLE
# define RGB_DI_PIN B15
# define RGBLED_NUM 68
# define RGBLIGHT_ANIMATIONS
#endif // RGBLIGHT_ENABLE
/* RGN Matrix */
#ifdef RGB_MATRIX_ENABLE
# define RGB_DI_PIN B15
# define RGBLED_NUM 68
# define DRIVER_LED_TOTAL RGBLED_NUM
#define WS2812_SPI SPID2 // default: SPID1
#define WS2812_SPI_MOSI_PAL_MODE 5
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180
# define RGBLIGHT_VAL_STEP 18
# define RGB_DISABLE_WHEN_USB_SUSPENDED true
# define RGB_MATRIX_CENTER { 32, 96 }
# define RGB_MATRIX_KEYPRESSES
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#endif
/* Encoder */
#ifdef ENCODER_ENABLE
# define ENCODERS_PAD_A { A15 }
# define ENCODERS_PAD_B { B3 }
# define ENCODER_RESOLUTION 4
//# define ENCODER_DIRECTION_FLIP
#endif
/* MOUSEKEY */
#ifdef MOUSEKEY_ENABLE
# define MOUSEKEY_DELAY 0
# define MOUSEKEY_INTERVAL 17
# define MK_3_SPEED
# define MK_MOMENTARY_ACCEL
# define MK_C_OFFSET_UNMOD 64
# define MK_C_INTERVAL_UNMOD 17
#endif
/* Others */
#define TAP_HOLD_CAPS_DELAY 20
#ifdef CONSOLE_ENABLE
# define DEBUG_MATRIX_SCAN_RATE
#endif
#endif