config.h (1762B)
1 /* 2 Copyright 2020-2021 mtei 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 21 /* key matrix size */ 22 #define MATRIX_ROWS 5 23 #define MATRIX_COLS 16 24 25 /* Pro Micro ************************** 26 ==== 27 +-------====------+ 28 MDEBUG | D3/TXO RAW | 29 | D2/RXI GND | 30 | GND RST | 31 | GND Vcc | 32 | D1/SDA F4 | COL_0_1_L 33 | D0/SCL F5 | COL_2_3_L 34 ROW_0 | D4 F6 | COL_4_5_L 35 ROW_1 | C6 F7 | COL_6_7_L 36 ROW_2 | D7 SCK/B1 | COL_6_7_R 37 ROW_3 | E6 MISO/B3 | COL_4_5_R 38 ROW_4 | B4 MOSI/B2 | COL_2_3_R 39 SEL_AB | B5 B6 | COL_0_1_R 40 +-----------------+ 41 ***************************************/ 42 43 44 /* COL2ROW, ROW2COL */ 45 #define DIODE_DIRECTION COL2ROW 46 47 /* 48 * Feature disable options 49 * These options are also useful to firmware size reduction. 50 */ 51 52 /* disable debug print */ 53 //#define NO_DEBUG 54 55 /* disable print */ 56 //#define NO_PRINT 57 58 /* disable action features */ 59 //#define NO_ACTION_LAYER 60 //#define NO_ACTION_TAPPING 61 //#define NO_ACTION_ONESHOT 62 63 #ifdef DEBUG_CONFIG 64 # define MATRIX_DEBUG_PIN D3 65 # include "../debug_config.h" 66 #endif