]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/runner3680/3x7/config.h
[Keyboard] [runner3680] Fix the number of keys (#6302)
[qmk_firmware.git] / keyboards / runner3680 / 3x7 / config.h
1 /* Copyright 2019 omkbd
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       0xFEED
21 #define PRODUCT_ID      0x0000
22 #define DEVICE_VER      0x0005
23 #define MANUFACTURER    Omkbd
24 #define PRODUCT         runner3680
25 #define DESCRIPTION     A split keyboard
26
27 /* key matrix size */
28 // Rows are doubled-up
29 #define MATRIX_ROWS 6
30 #define MATRIX_COLS 7
31
32 // wiring of each half
33 #define MATRIX_ROW_PINS { D4, C6, D7 }
34 #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2 ,B6 }
35 // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5 } //uncomment this line and comment line above if you need to reverse left-to-right key order
36
37 /* define tapping term */
38 #define TAPPING_TERM 120
39
40 /* define if matrix has ghost */
41 //#define MATRIX_HAS_GHOST
42
43 /* Set 0 if debouncing isn't needed */
44 #define DEBOUNCE 5
45
46 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
47 #define LOCKING_SUPPORT_ENABLE
48 /* Locking resynchronize hack */
49 #define LOCKING_RESYNC_ENABLE
50
51 /* ws2812 RGB LED */
52 #define RGB_DI_PIN D3
53 #define RGBLIGHT_ANIMATIONS
54 #define RGBLED_NUM 42
55 #define RGBLIGHT_SPLIT
56 #define RGBLED_SPLIT { 21, 21 }    // Number of LEDs
57 #define RGBLIGHT_LIMIT_VAL 100
58
59 #define SOFT_SERIAL_PIN D2
60 #define SELECT_SOFT_SERIAL_SPEED 1
61 /*Sets the protocol speed when using serial communication*/
62 //Speeds:
63 //0: about 189kbps (Experimental only)
64 //1: about 137kbps (default)
65 //2: about 75kbps
66 //3: about 39kbps
67 //4: about 26kbps
68 //5: about 20kbps