You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.5 KiB

  1. /* Wait between tap_code register and unregister to fix flaky media keys. */
  2. #undef TAP_CODE_DELAY
  3. #define TAP_CODE_DELAY 20
  4. /* Extend default tap timeout because I'm too slow. :) */
  5. #undef TAPPING_TERM
  6. #define TAPPING_TERM 250
  7. /*
  8. * Treat mod-tap keys as holds even if the mod-tap key and the key being
  9. * modified are both relased within TAPPING_TERM. This assumes the mod-tap key
  10. * isn't usually pressed in quick succession with other tapped keys, which is
  11. * good when the tap keycode is something like KC_ESC rather than a letter.
  12. */
  13. #define PERMISSIVE_HOLD
  14. /*
  15. * Turn off key repeat support of the tap keycode for tap-hold keys, enabling
  16. * holds to work correctly in quick succession after taps.
  17. */
  18. #define TAPPING_FORCE_HOLD
  19. #if defined(RGBLIGHT_ENABLE)
  20. /* Turn off RGB underglow when the host goes to sleep. */
  21. #define RGBLIGHT_SLEEP
  22. /* Keep RGB underglow level increments consistent across keyboards. */
  23. #undef RGBLIGHT_HUE_STEP
  24. #undef RGBLIGHT_SAT_STEP
  25. #undef RGBLIGHT_VAL_STEP
  26. #define RGBLIGHT_HUE_STEP 8
  27. #define RGBLIGHT_SAT_STEP 17
  28. #define RGBLIGHT_VAL_STEP 17
  29. #endif
  30. #if defined(BACKLIGHT_ENABLE)
  31. /* Enable backlight breathing across the board. */
  32. #define BACKLIGHT_BREATHING
  33. /* Keep backlight level increments consistent across keyboards. */
  34. #undef BACKLIGHT_LEVELS
  35. #define BACKLIGHT_LEVELS 7
  36. #endif
  37. #if defined(MOUSEKEY_ENABLE)
  38. /* Make mouse operation smoother. */
  39. #undef MOUSEKEY_DELAY
  40. #undef MOUSEKEY_INTERVAL
  41. #define MOUSEKEY_DELAY 0
  42. #define MOUSEKEY_INTERVAL 16
  43. /* Lower mouse speed to adjust for reduced MOUSEKEY_INTERVAL. */
  44. #undef MOUSEKEY_MAX_SPEED
  45. #undef MOUSEKEY_TIME_TO_MAX
  46. #undef MOUSEKEY_WHEEL_MAX_SPEED
  47. #undef MOUSEKEY_WHEEL_TIME_TO_MAX
  48. #define MOUSEKEY_MAX_SPEED 7
  49. #define MOUSEKEY_TIME_TO_MAX 150
  50. #define MOUSEKEY_WHEEL_MAX_SPEED 3
  51. #define MOUSEKEY_WHEEL_TIME_TO_MAX 150
  52. #endif
  53. #if defined(KEYBOARD_cannonkeys_instant60)
  54. /*
  55. * Work around EEPROM incompatibility with VIA:
  56. * https://github.com/qmk/qmk_firmware/issues/6589#issuecomment-524042457.
  57. */
  58. #undef EEPROM_MAGIC_ADDR
  59. #undef EEPROM_VERSION_ADDR
  60. #undef DYNAMIC_KEYMAP_EEPROM_ADDR
  61. #undef EEPROM_CUSTOM_BACKLIGHT
  62. #undef DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
  63. #define EEPROM_MAGIC_ADDR 34
  64. #define EEPROM_VERSION_ADDR 36
  65. #define DYNAMIC_KEYMAP_EEPROM_ADDR 37
  66. #define EEPROM_CUSTOM_BACKLIGHT 637
  67. #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 638
  68. #endif