config.h 2.0 KB

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