my layout for the ergodox infinity with qmk
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.

102 lines
3.2 KiB

  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 "TMK"
  23. #define USBSTR_MANUFACTURER 'T', '\x00', 'M', '\x00', 'K', '\x00', ' ', '\x00'
  24. #define PRODUCT "Infinity keyboard/TMK"
  25. #define USBSTR_PRODUCT 'I', '\x00', 'n', '\x00', 'f', '\x00', 'i', '\x00', 'n', '\x00', 'i', '\x00', 't', '\x00', 'y', '\x00', ' ', '\x00', 'k', '\x00', 'e', '\x00', 'y', '\x00', 'b', '\x00', 'o', '\x00', 'a', '\x00', 'r', '\x00', 'd', '\x00', '/', '\x00', 'T', '\x00', 'M', '\x00', 'K', '\x00'
  26. #define MOUSEKEY_INTERVAL 20
  27. #define MOUSEKEY_DELAY 0
  28. #define MOUSEKEY_TIME_TO_MAX 60
  29. #define MOUSEKEY_MAX_SPEED 7
  30. #define MOUSEKEY_WHEEL_MAX_SPEED 10
  31. #define MOUSEKEY_WHEEL_TIME_TO_MAX 60
  32. #define TAPPING_TOGGLE 2
  33. /* define if matrix has ghost */
  34. //#define MATRIX_HAS_GHOST
  35. #define PERMISSIVE_HOLD
  36. #define TAPPING_TERM 200
  37. #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.)
  38. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  39. #define LOCKING_SUPPORT_ENABLE
  40. /* Locking resynchronize hack */
  41. #define LOCKING_RESYNC_ENABLE
  42. /* key combination for command */
  43. #define IS_COMMAND() ( \
  44. keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  45. keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  46. )
  47. /* key matrix size */
  48. #define MATRIX_ROWS 18
  49. #define MATRIX_COLS 5
  50. #define LOCAL_MATRIX_ROWS 9
  51. /* number of backlight levels */
  52. #define BACKLIGHT_LEVELS 5
  53. #define LED_BRIGHTNESS_LO 100
  54. #define LED_BRIGHTNESS_HI 255
  55. /* define if matrix has ghost */
  56. //#define MATRIX_HAS_GHOST
  57. /* Set 0 if debouncing isn't needed */
  58. #define DEBOUNCE 2
  59. #define SERIAL_LINK_BAUD 562500
  60. #define SERIAL_LINK_THREAD_PRIORITY (NORMALPRIO - 1)
  61. #define VISUALIZER_USER_DATA_SIZE 16
  62. //#define FORCE_NKRO
  63. /*
  64. * Feature disable options
  65. * These options are also useful to firmware size reduction.
  66. */
  67. /* disable debug print */
  68. //#define NO_DEBUG
  69. /* disable print */
  70. //#define NO_PRINT
  71. /* disable action features */
  72. //#define NO_ACTION_LAYER
  73. //#define NO_ACTION_TAPPING
  74. //#define NO_ACTION_ONESHOT
  75. //#define NO_ACTION_MACRO
  76. //#define NO_ACTION_FUNCTION
  77. #endif