]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/xealous/rev1/config.h
Fix process_combo which assign -1 to uint16_t (#3697)
[qmk_firmware.git] / keyboards / handwired / xealous / rev1 / config.h
1 /*
2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2015 Jack Humbert
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef REV1_CONFIG_H
20 #define REV1_CONFIG_H
21
22 #include "config_common.h"
23
24 /* USB Device descriptor parameter */
25 #define VENDOR_ID       0x4131
26 #define PRODUCT_ID      0x5141
27 #define DEVICE_VER      0x0001
28 #define MANUFACTURER    XeaLouS
29 #define PRODUCT         XeaL60
30 #define DESCRIPTION     A split keyboard 
31
32 /* key matrix size */
33 // Rows are doubled-up
34 #define MATRIX_ROWS 10
35 #define MATRIX_COLS 8
36
37 // wiring of each half
38 // Ascii art of pro micro. Pin names PD3, PD2, etc.
39 //Usage| Name | Label      Label| Name | Usage
40 //                   PORT          
41 //     | PD3    TX0        RAW       |
42 //     | PD2    RX1        GND       |SerGnd
43 //     |        GND        RESET     |
44 //     |        GND        VCC       |SerVCc
45 //     | PD1    2          A3    PF4 | Col7
46 //Ser  | PD0    3          A2    PF5 | Col6
47 //Row4 | PD4    4          A1    PF6 | Col5
48 //AUDIO| PC6    5          A0    PF7 | Col4
49 //Row3 | PD7    6          15    PB1 | Col3
50 //Row2 | PE6    7          14    PB3 | Col2
51 //Row1 | PB4    8          13    PB2 | Col1
52 //Row0 | PB5    9          10    PB6 | Col0
53
54 // Note reservation of C6 for audio
55 #define MATRIX_ROW_PINS { B5, B4, E6, D7, D4 }
56 #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 }
57
58 /* define if matrix has ghost */
59 //#define MATRIX_HAS_GHOST
60
61 /* number of backlight levels */
62 // #define BACKLIGHT_LEVELS 3
63
64 /* Set 0 if debouncing isn't needed */
65 #define DEBOUNCING_DELAY 5
66
67 /* key combination for command */
68 #define IS_COMMAND() ( \
69     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
70 )
71
72 /*
73  * Feature disable options
74  *  These options are also useful to firmware size reduction.
75  */
76
77 /* disable debug print */
78 // #define NO_DEBUG
79
80 /* disable print */
81 // #define NO_PRINT
82
83 /* disable action features */
84 //#define NO_ACTION_LAYER
85 //#define NO_ACTION_TAPPING
86 #define NO_ACTION_ONESHOT
87 #define NO_ACTION_MACRO
88 //#define NO_ACTION_FUNCTION
89 #define IGNORE_MOD_TAP_INTERRUPT
90 #endif