config.h (3027B)
1 /* 2 Copyright 2012 Jun Wako <wakojun@gmail.com> 3 Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com> 4 Copyright 2015 ZSA Technology Labs Inc (@zsa) 5 Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna) 6 Copyright 2021 Gary Kong <kongkm88@gmail.com> (@garykong) 7 8 This program is free software: you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation, either version 2 of the License, or 11 (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #pragma once 23 24 25 /* key matrix size */ 26 #define MATRIX_ROWS 14 27 #define MATRIX_ROWS_PER_SIDE (MATRIX_ROWS / 2) 28 #define MATRIX_COLS 7 29 30 #define COL_EXPANDED { true, true, true, true, true, true, true, false, false, false, false, false, false, false } 31 #define MATRIX_ONBOARD_ROW_PINS { 0, 0, 0, 0, 0, 0, 0, B0, B1, B2, B3, D2, D3, C6 } 32 #define MATRIX_ONBOARD_COL_PINS { F0, F1, F4, F5, F6, F7, D7 } 33 #define DIODE_DIRECTION COL2ROW 34 #define EXPANDER_COL_REGISTER GPIOB 35 #define EXPANDER_ROW_REGISTER GPIOA 36 #define MATRIX_EXPANDER_COL_PINS { 6, 5, 4, 3, 2, 1, 0 } 37 #define MATRIX_EXPANDER_ROW_PINS { 0, 1, 2, 3, 4, 5, 6 } 38 39 40 #define MOUSEKEY_INTERVAL 20 41 #define MOUSEKEY_DELAY 0 42 #define MOUSEKEY_TIME_TO_MAX 60 43 #define MOUSEKEY_MAX_SPEED 7 44 #define MOUSEKEY_WHEEL_DELAY 0 45 46 /* key combination for command */ 47 #define IS_COMMAND() ( \ 48 get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \ 49 get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \ 50 ) 51 52 #ifndef LED_BRIGHTNESS_LO 53 #define LED_BRIGHTNESS_LO 15 54 #endif 55 #ifndef LED_BRIGHTNESS_HI 56 #define LED_BRIGHTNESS_HI 255 57 #endif 58 #define LED_BRIGHTNESS_DEFAULT (LED_BRIGHTNESS_HI) 59 60 /* fix space cadet rollover issue */ 61 #define DISABLE_SPACE_CADET_ROLLOVER 62 63 /* 64 * The debounce filtering reports a key/switch change directly, 65 * without any extra delay. After that the debounce logic will filter 66 * all further changes, until the key/switch reports the same state for 67 * the given count of scans. 68 * So a perfect switch will get a short debounce period and 69 * a bad key will get a much longer debounce period. 70 * The result is an adaptive debouncing period for each switch. 71 * 72 * If you don't define it here, the matrix code will default to 73 * 5, which is now closer to 10ms, but still plenty according to 74 * manufacturer specs. 75 */ 76 77 /* 78 * Feature disable options 79 * These options are also useful to firmware size reduction. 80 */ 81 82 /* disable debug print */ 83 // #define NO_DEBUG 84 85 /* disable print */ 86 // #define NO_PRINT 87 88 /* disable action features */ 89 //#define NO_ACTION_LAYER 90 //#define NO_ACTION_TAPPING 91 //#define NO_ACTION_ONESHOT 92 //#define DEBUG_MATRIX_SCAN_RATE