config.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 CONFIG_H
  15. #define CONFIG_H
  16. #define PREVENT_STUCK_MODIFIERS
  17. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0xFEED
  19. #define PRODUCT_ID 0x6464
  20. #define DEVICE_VER 0x0001
  21. /* in python2: list(u"whatever".encode('utf-16-le')) */
  22. /* at most 32 characters or the ugly hack in usb_main.c borks */
  23. #define MANUFACTURER "JMWS"
  24. #define USBSTR_MANUFACTURER 'J', '\x00', 'M', '\x00', 'W', '\x00', 'S', '\x00'
  25. #define PRODUCT "JM60 RGB Keyboard(QMK)"
  26. #define USBSTR_PRODUCT 'J', '\x00', 'M', '\x00', '6', '\x00', '0', '\x00', ' ', '\x00', 'R', '\x00', 'G', '\x00', 'B', '\x00', ' ', '\x00', 'K', '\x00', 'e', '\x00', 'y', '\x00', 'b', '\x00', 'o', '\x00', 'a', '\x00', 'r', '\x00', 'd', '\x00', '(', '\x00', 'Q', '\x00', 'M', '\x00', 'K', '\x00', ')', '\x00'
  27. #define DESCRIPTION "QMK keyboard firmware for JM60 RGB Keyboard"
  28. /* key matrix size */
  29. #define MATRIX_ROWS 5
  30. #define MATRIX_COLS 14
  31. /* number of backlight levels */
  32. //#define BACKLIGHT_LEVELS 1
  33. //#define LED_BRIGHTNESS_LO 100
  34. //#define LED_BRIGHTNESS_HI 255
  35. /* define if matrix has ghost */
  36. //#define MATRIX_HAS_GHOST
  37. /* Set 0 if debouncing isn't needed */
  38. #define DEBOUNCE 5
  39. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  40. //#define LOCKING_SUPPORT_ENABLE
  41. /* Locking resynchronize hack */
  42. #define LOCKING_RESYNC_ENABLE
  43. /* key combination for command */
  44. #define IS_COMMAND() ( \
  45. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  46. )
  47. /*
  48. * Feature disable options
  49. * These options are also useful to firmware size reduction.
  50. */
  51. /* disable debug print */
  52. //#define NO_DEBUG
  53. /* disable print */
  54. //#define NO_PRINT
  55. /* disable action features */
  56. //#define NO_ACTION_LAYER
  57. //#define NO_ACTION_TAPPING
  58. //#define NO_ACTION_ONESHOT
  59. //#define NO_ACTION_MACRO
  60. //#define NO_ACTION_FUNCTION
  61. #endif