]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/cannonkeys/iron165/config.h
Fix processing of RGB keycodes on slave half (#7404)
[qmk_firmware.git] / keyboards / cannonkeys / iron165 / config.h
1 /*
2 Copyright 2015 Jun Wako <wakojun@gmail.com>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #pragma once
19
20 /* USB Device descriptor parameter */
21 #define VENDOR_ID       0x5A12
22 #define PRODUCT_ID      0x5165
23 #define DEVICE_VER      0x0001
24 /* in python2: list(u"whatever".encode('utf-16-le')) */
25 /*   at most 32 characters or the ugly hack in usb_main.c borks */
26 #define MANUFACTURER SmithAndRune
27 #define PRODUCT Iron165
28 #define DESCRIPTION Iron165 Keyboard
29
30 /* key matrix size */
31 #define MATRIX_ROWS 5
32 #define MATRIX_COLS 16
33
34 #define MATRIX_COL_PINS { A5, B10, A3, A2, B0, A8, C13, B9, B8, B7, B6, B5, B4, B3, A15, A14 }
35 #define MATRIX_ROW_PINS { B12, B13, B14, B15, A1 }
36 #define DIODE_DIRECTION COL2ROW
37
38 #define BACKLIGHT_LEVELS 6
39 #define BACKLIGHT_BREATHING
40 #define BREATHING_PERIOD 6
41
42 /* define if matrix has ghost */
43 //#define MATRIX_HAS_GHOST
44
45 /* Set 0 if debouncing isn't needed */
46 #define DEBOUNCE    5
47
48 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
49 #define LOCKING_SUPPORT_ENABLE
50 /* Locking resynchronize hack */
51 #define LOCKING_RESYNC_ENABLE
52
53 // EEPROM usage
54 // TODO: refactor with new user EEPROM code (coming soon)
55 #define EEPROM_MAGIC 0x451F
56 #define EEPROM_MAGIC_ADDR 40
57 // Bump this every time we change what we store
58 // This will automatically reset the EEPROM with defaults
59 // and avoid loading invalid data from the EEPROM
60 #define EEPROM_VERSION 0x02
61 #define EEPROM_VERSION_ADDR 42
62
63
64 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
65 // Dynamic macro starts after dynamic keymaps (35+(4*5*15*2)) = (35+600) = 635
66 // start + layer * rows * col * 2
67 #define DYNAMIC_KEYMAP_EEPROM_ADDR 43
68 #define EEPROM_CUSTOM_BACKLIGHT 684
69 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 685
70 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 192
71 #define DYNAMIC_KEYMAP_MACRO_COUNT 16
72
73 /*
74  * Feature disable options
75  *  These options are also useful to firmware size reduction.
76  */
77
78 /* disable debug print */
79 //#define NO_DEBUG
80
81 /* disable print */
82 //#define NO_PRINT
83
84 /* disable action features */
85 //#define NO_ACTION_LAYER
86 //#define NO_ACTION_TAPPING
87 //#define NO_ACTION_ONESHOT
88 //#define NO_ACTION_MACRO
89 //#define NO_ACTION_FUNCTION