config.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /*
  2. Copyright 2012 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 CONFIG_H
  15. #define CONFIG_H
  16. #include "config_common.h"
  17. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0xFEED
  19. #define PRODUCT_ID 0x6062
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER techkeys.us
  22. #define PRODUCT sixkeykeyboard
  23. #define DESCRIPTION A little 6-key macro pad
  24. /* key matrix size */
  25. #define MATRIX_ROWS 2
  26. #define MATRIX_COLS 3
  27. /* define if matrix has ghost */
  28. //#define MATRIX_HAS_GHOST
  29. /* number of backlight levels */
  30. #define BACKLIGHT_LEVELS 0
  31. /* Set 0 if debouncing isn't needed */
  32. #define DEBOUNCING_DELAY 5
  33. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  34. #define LOCKING_SUPPORT_ENABLE
  35. /* Locking resynchronize hack */
  36. #define LOCKING_RESYNC_ENABLE
  37. /* Force NKRO Mode - If forced on, must be disabled via magic key (default = LShift+RShift+N) */
  38. #define FORCE_NKRO
  39. /*
  40. * Magic key options
  41. * These options allow the magic key functionality to be changed. This is useful
  42. * if your keyboard/keypad is missing keys and you want magic key support.
  43. */
  44. /* key combination for magic key command */
  45. #define IS_COMMAND() ( \
  46. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  47. )
  48. /* control how magic key switches layers */
  49. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  50. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  51. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  52. /* remap magic keys */
  53. //#define MAGIC_KEY_HELP1 H
  54. //#define MAGIC_KEY_HELP2 SLASH
  55. //#define MAGIC_KEY_DEBUG D
  56. //#define MAGIC_KEY_DEBUG_MATRIX X
  57. //#define MAGIC_KEY_DEBUG_KBD K
  58. //#define MAGIC_KEY_DEBUG_MOUSE M
  59. //#define MAGIC_KEY_VERSION V
  60. //#define MAGIC_KEY_STATUS S
  61. //#define MAGIC_KEY_CONSOLE C
  62. //#define MAGIC_KEY_LAYER0_ALT1 ESC
  63. //#define MAGIC_KEY_LAYER0_ALT2 GRAVE
  64. //#define MAGIC_KEY_LAYER0 0
  65. //#define MAGIC_KEY_LAYER1 1
  66. //#define MAGIC_KEY_LAYER2 2
  67. //#define MAGIC_KEY_LAYER3 3
  68. //#define MAGIC_KEY_LAYER4 4
  69. //#define MAGIC_KEY_LAYER5 5
  70. //#define MAGIC_KEY_LAYER6 6
  71. //#define MAGIC_KEY_LAYER7 7
  72. //#define MAGIC_KEY_LAYER8 8
  73. //#define MAGIC_KEY_LAYER9 9
  74. //#define MAGIC_KEY_BOOTLOADER PAUSE
  75. //#define MAGIC_KEY_LOCK BSLS
  76. //#define MAGIC_KEY_EEPROM E
  77. //#define MAGIC_KEY_NKRO N
  78. //#define MAGIC_KEY_SLEEP_LED Z
  79. /*
  80. * Feature disable options
  81. * These options are also useful to firmware size reduction.
  82. */
  83. /* disable debug print */
  84. //#define NO_DEBUG
  85. /* disable print */
  86. //#define NO_PRINT
  87. /* disable action features */
  88. //#define NO_ACTION_LAYER
  89. #define NO_ACTION_TAPPING
  90. #define NO_ACTION_ONESHOT
  91. //#define NO_ACTION_MACRO
  92. //#define NO_ACTION_FUNCTION
  93. #endif