config.h (1845B)
1 /* 2 Copyright 2019 SwanMatch 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 #define MASTER_RIGHT 21 22 #ifdef RGBLIGHT_ENABLE 23 /*== customize breathing effect ==*/ 24 /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ 25 #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 26 /*==== use exp() and sin() ====*/ 27 #define RGBLIGHT_EFFECT_BREATHE_CENTER 2 // 1 to 2.7 28 #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 29 /*== customize snake effect ==*/ 30 #define RGBLIGHT_EFFECT_SNAKE_LENGTH RGBLIGHT_LED_COUNT 31 /*== customize knight effect ==*/ 32 #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 6 33 #endif 34 35 /* Audio */ 36 #ifdef AUDIO_ENABLE 37 #define AUDIO_PIN B6 38 #define STARTUP_SONG SONG(STARTUP_SOUND) 39 #define AUDIO_CLICKY 40 #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.0f 41 #endif 42 43 //#define RETRO_TAPPING 44 45 #ifdef MOUSEKEY_ENABLE 46 #define MOUSEKEY_INTERVAL 20 47 #define MOUSEKEY_MAX_SPEED 5 48 #define MOUSEKEY_TIME_TO_MAX 60 49 #endif 50 51 /* 52 * Feature disable options 53 * These options are also useful to firmware size reduction. 54 */ 55 56 /* disable debug print */ 57 //#define NO_DEBUG 58 59 /* disable print */ 60 //#define NO_PRINT 61 62 /* disable action features */ 63 //#define NO_ACTION_LAYER 64 //#define NO_ACTION_TAPPING 65 //#define NO_ACTION_ONESHOT