2 Copyright 2015 Jun Wako <wakojun@gmail.com>
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 0xCA04
22 #define PRODUCT_ID 0x57F5
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 CannonKeys
27 #define PRODUCT Satisfaction75
28 #define DESCRIPTION Satisfaction 75 Keyboard
32 #define MATRIX_COLS 16
34 #define MATRIX_COL_PINS { B1, B2, B10, B11, B12, B13, B14, A8, A9, A10, B0, A7, A5, B5, A15, A1 }
35 #define MATRIX_ROW_PINS { B3, B4, A0, A2, A4, A3 }
36 #define DIODE_DIRECTION COL2ROW
38 #define ENCODERS_PAD_A { B9 }
39 #define ENCODERS_PAD_B { B8 }
42 #define BACKLIGHT_LEVELS 24
43 #define BACKLIGHT_BREATHING
44 #define BREATHING_PERIOD 6
46 /* define if matrix has ghost */
47 //#define MATRIX_HAS_GHOST
50 /* Set 0 if debouncing isn't needed */
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
58 #ifdef QWIIC_MICRO_OLED_ENABLE
60 #undef I2C_ADDRESS_SA0_1
61 #define I2C_ADDRESS_SA0_1 0b0111100
68 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
72 // TODO: refactor with new user EEPROM code (coming soon)
73 #define EEPROM_MAGIC 0x451F
74 #define EEPROM_MAGIC_ADDR 32
75 // Bump this every time we change what we store
76 // This will automatically reset the EEPROM with defaults
77 // and avoid loading invalid data from the EEPROM
78 #define EEPROM_VERSION 0x01
79 #define EEPROM_VERSION_ADDR 34
81 // Dynamic keymap starts after EEPROM version
82 #define DYNAMIC_KEYMAP_EEPROM_ADDR 35
84 // Dynamic macro starts after dynamic keymaps (35+(4*6*16*2)) = (35+768) = 803
86 // I'm also putting my custom stuff after that
87 // 1 for enabled encoder modes
88 // 1 for custom backlighting controls
89 // 1 for OLED default mode
90 // 6 for 3x custom encoder settings, left, right, and press (18 total)
92 #define DYNAMIC_KEYMAP_ENABLED_ENCODER_MODES 803
93 #define DYNAMIC_KEYMAP_CUSTOM_BACKLIGHT 804
94 #define DYNAMIC_KEYMAP_DEFAULT_OLED 805
95 #define DYNAMIC_KEYMAP_CUSTOM_ENCODER 806
97 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 824
98 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 200
99 #define DYNAMIC_KEYMAP_MACRO_COUNT 16
104 * Feature disable options
105 * These options are also useful to firmware size reduction.
108 /* disable debug print */
114 /* disable action features */
115 //#define NO_ACTION_LAYER
116 //#define NO_ACTION_TAPPING
117 //#define NO_ACTION_ONESHOT
118 //#define NO_ACTION_MACRO
119 //#define NO_ACTION_FUNCTION