qmk_firmware/keyboards/thevankeyboards/minivan/keymaps/josjoha/config.h
2021-04-19 19:40:18 -07:00

49 lines
2 KiB
C

/*
* License (GPL):
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
* © 2019,2020 by Jos Boersema
*/
#pragma once
#define LAYER_STATE_16BIT // This saves more than 400 bytes on the hex file
// place overrides here
// Some defines meant to decrease the firmware size. The firmware is otherwise over the maximum (atmega32u4)
//# ifndef LINK_TIME_OPTIMIZATION_ENABLE
//Disable old style macro handling: MACRO() & action_get_macro
//# define NO_ACTION_MACRO // This saves 320 bytes
//disable calling of action_function() from the fn_actions array (deprecated)
//# define NO_ACTION_FUNCTION // This saves 96 bytes
//# endif
#define PERMISSIVE_HOLD
#define RGBLIGHT_SLEEP // QMK docs: "If defined, the RGB lighting will be switched off when the host goes to sleep"
#define RGBLIGHT_EFFECT_BREATHING
// Layer switch TT(layer) tapping amount to make it toggle
#define TAPPING_TERM_HOLTAP 225 // 175 ms proved unreliable, 225 ms seems ok (personal preference)
// Attempts to reduce firmware size:
//#define LINK_TIME_OPTIMIZATION_ENABLE // Did not decrease firmware size when tested on 26 Jan 2020
//#define NO_DEBUG //disable debugging (already defined)
//#define NO_PRINT JJdisable printing/debugging using hid_listen (already defined)
//#define NO_ACTION_LAYER //disable layers (obviously need layers)
//#define NO_ACTION_TAPPING // This saves 2516 bytes (9%) (keymap uses tapping)
//#define NO_ACTION_ONESHOT // This did not reduse firmware size on 26 Jan 2020