aboutsummaryrefslogtreecommitdiff
path: root/keyboards/melgeek/mj63/rev1/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/melgeek/mj63/rev1/config.h')
-rw-r--r--keyboards/melgeek/mj63/rev1/config.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/keyboards/melgeek/mj63/rev1/config.h b/keyboards/melgeek/mj63/rev1/config.h
new file mode 100644
index 000000000..4cd8d6a9d
--- /dev/null
+++ b/keyboards/melgeek/mj63/rev1/config.h
@@ -0,0 +1,70 @@
1/* Copyright 2020 MelGeek <melgeek001365@gmail.com>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19/* USB Device descriptor parameter */
20#define VENDOR_ID 0xEDED
21#define PRODUCT_ID 0x6063
22#define DEVICE_VER 0x0001
23#define MANUFACTURER MelGeek
24#define PRODUCT MJ63
25
26/* key matrix size */
27#define MATRIX_ROWS 5
28#define MATRIX_COLS 14
29
30/*
31 * Keyboard Matrix Assignments
32 *
33 * Change this to how you wired your keyboard
34 * COLS: AVR pins used for columns, left to right
35 * ROWS: AVR pins used for rows, top to bottom
36 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
37 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
38 *
39 */
40
41#define MATRIX_ROW_PINS { B12, B11, B10, B1, A3 }
42#define MATRIX_COL_PINS { B15, A8, A10, A15, B3, B4, B5, B8, B9, C13, C14, C15, A0, A1 }
43#define UNUSED_PINS
44
45/* COL2ROW, ROW2COL*/
46#define DIODE_DIRECTION COL2ROW
47
48/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
49#define DEBOUNCE 3
50
51/* disable these deprecated features by default */
52#define NO_ACTION_MACRO
53#define NO_ACTION_FUNCTION
54
55#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
56#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
57#define RGB_MATRIX_KEYPRESSES
58#define RGB_MATRIX_LED_PROCESS_LIMIT 4
59#define RGB_MATRIX_LED_FLUSH_LIMIT 26
60#define DISABLE_RGB_MATRIX_SPLASH
61#define DISABLE_RGB_MATRIX_MULTISPLASH
62#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
63//#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
64#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
65#define DRIVER_ADDR_1 0b0110000
66#define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons.
67#define DRIVER_COUNT 1
68#define DRIVER_1_LED_TOTAL 65
69#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
70#define DRIVER_INDICATOR_LED_TOTAL 0