config.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. Copyright 2015 Jun Wako <wakojun@gmail.com>
  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. */
  14. #ifndef INFINITY_ERGODOX_CONFIG_H
  15. #define INFINITY_ERGODOX_CONFIG_H
  16. /* USB Device descriptor parameter */
  17. #define VENDOR_ID 0xFEED
  18. #define PRODUCT_ID 0x6464
  19. #define DEVICE_VER 0x0001
  20. /* in python2: list(u"whatever".encode('utf-16-le')) */
  21. /* at most 32 characters or the ugly hack in usb_main.c borks */
  22. #define MANUFACTURER "QMK"
  23. #define PRODUCT "Infinity keyboard/QMK"
  24. #define MOUSEKEY_INTERVAL 20
  25. #define MOUSEKEY_DELAY 0
  26. #define MOUSEKEY_TIME_TO_MAX 60
  27. #define MOUSEKEY_MAX_SPEED 7
  28. #define MOUSEKEY_WHEEL_DELAY 0
  29. #define TAPPING_TOGGLE 1
  30. /* define if matrix has ghost */
  31. //#define MATRIX_HAS_GHOST
  32. #define TAPPING_TERM 200
  33. #define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
  34. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  35. #define LOCKING_SUPPORT_ENABLE
  36. /* Locking resynchronize hack */
  37. #define LOCKING_RESYNC_ENABLE
  38. /* key combination for command */
  39. #define IS_COMMAND() ( \
  40. keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  41. keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  42. )
  43. /* key matrix size */
  44. #define MATRIX_ROWS 18
  45. #define MATRIX_COLS 5
  46. #define LOCAL_MATRIX_ROWS 9
  47. /* number of backlight levels */
  48. #define BACKLIGHT_LEVELS 3
  49. #define LED_BRIGHTNESS_LO 100
  50. #define LED_BRIGHTNESS_HI 255
  51. /* define if matrix has ghost */
  52. //#define MATRIX_HAS_GHOST
  53. /* Set 0 if debouncing isn't needed */
  54. #define DEBOUNCE 5
  55. #define SERIAL_LINK_BAUD 562500
  56. #define SERIAL_LINK_THREAD_PRIORITY (NORMALPRIO - 1)
  57. #define VISUALIZER_USER_DATA_SIZE 16
  58. /*
  59. * music mode options
  60. * midi enabled
  61. * keymask disabled
  62. * so typing normally will result in music
  63. *
  64. */
  65. #define MUSIC_MASK keycode != KC_NO
  66. /*
  67. * Feature disable options
  68. * These options are also useful to firmware size reduction.
  69. */
  70. /* disable debug print */
  71. //#define NO_DEBUG
  72. /* disable print */
  73. //#define NO_PRINT
  74. /* disable action features */
  75. //#define NO_ACTION_LAYER
  76. //#define NO_ACTION_TAPPING
  77. //#define NO_ACTION_ONESHOT
  78. //#define NO_ACTION_MACRO
  79. //#define NO_ACTION_FUNCTION
  80. #endif