summaryrefslogtreecommitdiff
path: root/keyboards/thevankeyboards/minivan/keymaps/josjoha/config.h
blob: eff0c2fa694eb570308cec592f27ecddcd787969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * 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

// 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_EFFECT_BREATHING
#define RGBLIGHT_SLEEP // QMK docs: "If defined, the RGB lighting will be switched off when the host goes to sleep"

// 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