config.h (2035B)
1 /* 2 * Copyright 2020 Michael Schwingen 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 16 23 #define MATRIX_COLS 8 24 25 /* pins for external shift registers */ 26 #define SR_LOAD_PIN B0 27 #define SR_CLK_PIN B1 28 #define SR_DIN_PIN B3 29 #define SR_DOUT_PIN B2 30 31 /* 32 * Feature disable options 33 * These options are also useful to firmware size reduction. 34 */ 35 36 /* disable debug print */ 37 //#define NO_DEBUG 38 39 /* disable print */ 40 //#define NO_PRINT 41 #define NORMAL_PRINT 42 //#define USER_PRINT 43 44 45 /* disable action features */ 46 //#define NO_ACTION_LAYER 47 //#define NO_ACTION_TAPPING 48 //#define NO_ACTION_ONESHOT 49 50 //#define DEBUG_MATRIX_SCAN_RATE 51 #define DYNAMIC_MACRO_NO_NESTING 52 53 #define MODELM_STATUS_LED E6 54 55 #define MODELM_LED1 B5 56 #define MODELM_LED2 B6 57 #define MODELM_LED3 D0 58 59 #if defined(KEYBOARD_ibm_model_m_mschwingen_led_wired) 60 # define MODELM_LED_CAPSLOCK MODELM_LED1 61 # define MODELM_LED_SCROLLOCK MODELM_LED2 62 # define MODELM_LED_NUMLOCK MODELM_LED3 63 #elif defined(KEYBOARD_ibm_model_m_mschwingen_led_ffc) 64 # define MODELM_LED_CAPSLOCK MODELM_LED2 65 # define MODELM_LED_SCROLLOCK MODELM_LED3 66 # define MODELM_LED_NUMLOCK MODELM_LED1 67 #elif defined(KEYBOARD_ibm_model_m_mschwingen_led_ws2812) 68 # define WS2812_LED_COUNT 3 69 #else 70 # error one of MODELM_LEDS_FFC, MODELM_LEDS_WIRED or MODELM_LEDS_WS2812 must be set! 71 #endif 72 73 // disabled, needs PCB patch. 74 //#define AUDIO_PIN C6 75 //#define NO_MUSIC_MODE