config.h (1948B)
1 /* 2 Copyright 2020 Takeshi Nishio 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 // Same size for Jones' custom Round-Robin matrix. 23 #define MATRIX_ROWS 11 24 #define MATRIX_COLS 11 25 26 /* 27 * Keyboard Matrix Assignments 28 * 29 * Change this to how you wired your keyboard 30 * COLS: AVR pins used for columns, left to right 31 * ROWS: AVR pins used for rows, top to bottom 32 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) 33 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) 34 * 35 */ 36 // Same pins for Jones' custom Round-Robin matrix. 37 #define MATRIX_ROW_PINS { D4, D7, C7, F1, F4, F5, D6, D5, E6, B0, B1 } 38 #define MATRIX_COL_PINS { D4, D7, C7, F1, F4, F5, D6, D5, E6, B0, B1 } 39 40 /* Audio */ 41 #ifdef AUDIO_ENABLE 42 #define AUDIO_PIN C6 43 #define AUDIO_PIN_ALT B6 // 2nd pin for simultaneous audio. 44 #define AUDIO_CLICKY 45 #endif 46 47 /*== Lighting Layers ==*/ 48 #define RGBLIGHT_LAYERS 49 // #define RGBLIGHT_MAX_LAYERS 2 50 #define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF // Overriding RGB Lighting on/off status 51 52 /* 53 * Feature disable options 54 * These options are also useful to firmware size reduction. 55 */ 56 57 /* disable debug print */ 58 //#define NO_DEBUG 59 60 /* disable print */ 61 //#define NO_PRINT 62 63 /* disable action features */ 64 //#define NO_ACTION_LAYER 65 //#define NO_ACTION_TAPPING 66 //#define NO_ACTION_ONESHOT