2 Copyright 2019 Danny Nguyen <danny@keeb.io>
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.
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.
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/>.
20 /* USB Device descriptor parameter */
21 #define VENDOR_ID 0xCB10
22 #define PRODUCT_ID 0x1256
23 #define DEVICE_VER 0x0400
24 #define MANUFACTURER Keebio
25 #define PRODUCT Iris Keyboard
26 #define DESCRIPTION Split 50 percent ergonomic keyboard
29 // Rows are doubled-up
30 #define MATRIX_ROWS 10
33 // wiring of each half
34 #define MATRIX_ROW_PINS { B1, F0, F5, F6, F7 }
35 #define MATRIX_COL_PINS { F1, F4, D3, D2, B7, D4 }
36 #define MATRIX_ROW_PINS_RIGHT { B1, B2, D2, F1, F4 }
37 #define MATRIX_COL_PINS_RIGHT { D4, D7, D3, B7, F0, B3 }
38 #define SPLIT_HAND_PIN D5
39 #define QMK_ESC_OUTPUT F1
40 #define QMK_ESC_INPUT B1
42 #define QMK_SPEAKER C6
44 #define ENCODERS_PAD_A { B2 }
45 #define ENCODERS_PAD_B { B3 }
46 #define ENCODERS_PAD_A_RIGHT { F7 }
47 #define ENCODERS_PAD_B_RIGHT { F6 }
49 /* COL2ROW or ROW2COL */
50 #define DIODE_DIRECTION COL2ROW
52 /* define if matrix has ghost */
53 //#define MATRIX_HAS_GHOST
55 /* number of backlight levels */
56 // #define BACKLIGHT_LEVELS 3
58 /* Set 0 if debouncing isn't needed */
61 /* serial.c configuration for split keyboard */
62 #define SOFT_SERIAL_PIN D0
64 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
65 #define LOCKING_SUPPORT_ENABLE
66 /* Locking resynchronize hack */
67 #define LOCKING_RESYNC_ENABLE
69 #define BACKLIGHT_PIN B5
70 #define BACKLIGHT_LEVELS 5
74 #define RGBLED_NUM 12 // Number of LEDs
75 #define RGBLED_SPLIT { 6, 6 }
77 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
81 // TODO: refactor with new user EEPROM code (coming soon)
82 #define EEPROM_MAGIC 0x451F
83 #define EEPROM_MAGIC_ADDR 34
84 // Bump this every time we change what we store
85 // This will automatically reset the EEPROM with defaults
86 // and avoid loading invalid data from the EEPROM
87 #define EEPROM_VERSION 0x08
88 #define EEPROM_VERSION_ADDR 36
90 // Dynamic keymap starts after EEPROM version
91 #define DYNAMIC_KEYMAP_EEPROM_ADDR 37
92 // Dynamic macro starts after dynamic keymaps (37+(4*10*6*2)) = (37+480)
93 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 517
94 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 507 // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
95 #define DYNAMIC_KEYMAP_MACRO_COUNT 16