]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/lily58/rev1/config.h
adding my planck keymap (#4782)
[qmk_firmware.git] / keyboards / lily58 / rev1 / config.h
1 /*
2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2015 Jack Humbert
4 Copyright 2017 F_YUUCHI
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #pragma once
21
22 //#include QMK_KEYBOARD_CONFIG_H
23 #include "config_common.h"
24
25 /* USB Device descriptor parameter */
26 #define VENDOR_ID       0xFC51
27 #define PRODUCT_ID      0x0058
28 #define DEVICE_VER      0x0100
29 #define MANUFACTURER    F_YUUCHI
30 #define PRODUCT         Lily58
31 #define DESCRIPTION     Lily58 is 6×4+5keys column-staggered split keyboard.
32
33 /* key matrix size */
34 // Rows are doubled-up
35 #define MATRIX_ROWS 10
36 #define MATRIX_COLS 6
37
38 // wiring of each half
39 #define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
40 #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 }
41
42 #define CATERINA_BOOTLOADER
43
44 /* define tapping term */
45 #define TAPPING_TERM 100
46
47 /* define if matrix has ghost */
48 //#define MATRIX_HAS_GHOST
49
50 /* Set 0 if debouncing isn't needed */
51 #define DEBOUNCING_DELAY 5
52
53 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
54 #define LOCKING_SUPPORT_ENABLE
55 /* Locking resynchronize hack */
56 #define LOCKING_RESYNC_ENABLE
57
58 /* key combination for command */
59 #define IS_COMMAND() ( \
60     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
61 )
62
63 /* ws2812 RGB LED */
64 #define RGB_DI_PIN D3
65
66 #define RGBLED_NUM 14    // Number of LEDs
67
68 /*
69  * Feature disable options
70  *  These options are also useful to firmware size reduction.
71  */
72
73 /* disable debug print */
74 // #define NO_DEBUG
75
76 /* disable print */
77 // #define NO_PRINT
78
79 /* disable action features */
80 //#define NO_ACTION_LAYER
81 //#define NO_ACTION_TAPPING
82 //#define NO_ACTION_ONESHOT
83 //#define NO_ACTION_MACRO
84 //#define NO_ACTION_FUNCTION