]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/pico/rev1/config.h
Tidy up dztech default keymaps and info.json (#7608)
[qmk_firmware.git] / keyboards / pico / rev1 / config.h
1 /* Copyright 2019 Kumao Kobo <kumaokobo@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 #include "config_common.h"
20
21 /* USB Device descriptor parameter */
22 #define VENDOR_ID       0xFEED
23 #define PRODUCT_ID      0x9692
24 #define DEVICE_VER      0x0100
25 #define MANUFACTURER    Kumao Kobo
26 #define PRODUCT         Pico Keyboard
27 #define DESCRIPTION     Split row staggered 5x7 keyboard (using kailh mid-height)
28
29 /* key matrix size */
30 // Rows are doubled-up
31 #define MATRIX_ROWS 10
32 #define MATRIX_COLS 7
33
34 // wiring of each half
35 #define MATRIX_ROW_PINS { D4, D7, E6, B4, B5 }
36 #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 }
37 // #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
38
39 /* COL2ROW or ROW2COL */
40 #define DIODE_DIRECTION COL2ROW
41
42 /* define if matrix has ghost */
43 //#define MATRIX_HAS_GHOST
44
45 /* number of backlight levels */
46 // #define BACKLIGHT_LEVELS 3
47
48 /* Set 0 if debouncing isn't needed */
49 #define DEBOUNCE 5
50
51 /* serial.c configuration for split keyboard */
52 #define SOFT_SERIAL_PIN D0
53
54 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55 #define LOCKING_SUPPORT_ENABLE
56 /* Locking resynchronize hack */
57 #define LOCKING_RESYNC_ENABLE
58
59 /* ws2812 RGB LED */
60 #define RGB_DI_PIN D3
61
62 #undef RGBLED_NUM
63 #define RGBLED_NUM 14    // Number of LEDs
64 #define RGBLIGHT_ANIMATIONS
65 #define RGBLIGHT_HUE_STEP 8
66 #define RGBLIGHT_SAT_STEP 8
67 #define RGBLIGHT_VAL_STEP 8
68
69 /*
70  * Feature disable options
71  *  These options are also useful to firmware size reduction.
72  */
73
74 /* disable debug print */
75 // #define NO_DEBUG
76
77 /* disable print */
78 // #define NO_PRINT
79
80 /* disable action features */
81 //#define NO_ACTION_LAYER
82 //#define NO_ACTION_TAPPING
83 //#define NO_ACTION_ONESHOT
84 //#define NO_ACTION_MACRO
85 //#define NO_ACTION_FUNCTION
86
87 #define MOUSEKEY_INTERVAL       20
88 #define MOUSEKEY_DELAY          0
89 #define MOUSEKEY_TIME_TO_MAX    60
90 #define MOUSEKEY_MAX_SPEED      7
91 #define MOUSEKEY_WHEEL_DELAY    0