config.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 0x6060
  20. #define DEVICE_VER 0x0003
  21. #define MANUFACTURER Sentraq
  22. #define PRODUCT S60-RGB
  23. #define DESCRIPTION QMK keyboard firmware for Sentraq S60-RGB
  24. /* key matrix size */
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 15
  27. // ROWS: Top to bottom, COLS: Left to right
  28. #define MATRIX_ROW_PINS { B5, B4, D7, D6, D4 }
  29. #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, B6, C6, C7, F1, F0, E6, B3, B2, B1, B0 }
  30. #define UNUSED_PINS
  31. #define BACKLIGHT_PIN B7
  32. /* COL2ROW or ROW2COL */
  33. #define DIODE_DIRECTION COL2ROW
  34. /* define if matrix has ghost */
  35. //#define MATRIX_HAS_GHOST
  36. /* Set 0 if debouncing isn't needed */
  37. #define DEBOUNCING_DELAY 5
  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_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  45. )
  46. /* Backlight configuration
  47. */
  48. #define BACKLIGHT_LEVELS 3
  49. /* Underlight configuration
  50. */
  51. #define RGB_DI_PIN F6
  52. #define RGBLIGHT_TIMER
  53. #define RGBLED_NUM 10 // Number of LEDs
  54. #define RGBLIGHT_HUE_STEP 10
  55. #define RGBLIGHT_SAT_STEP 17
  56. #define RGBLIGHT_VAL_STEP 17
  57. /*
  58. * Feature disable options
  59. * These options are also useful to firmware size reduction.
  60. */
  61. /* disable debug print */
  62. //#define NO_DEBUG
  63. /* disable print */
  64. //#define NO_PRINT
  65. /* disable action features */
  66. //#define NO_ACTION_LAYER
  67. //#define NO_ACTION_TAPPING
  68. //#define NO_ACTION_ONESHOT
  69. //#define NO_ACTION_MACRO
  70. //#define NO_ACTION_FUNCTION
  71. // For Tap Dancing
  72. #define TAPPING_TOGGLE 1
  73. #define TAPPING_TERM 300
  74. /*
  75. * MIDI options
  76. */
  77. /* Prevent use of disabled MIDI features in the keymap */
  78. #define MIDI_ENABLE_STRICT 1
  79. /* enable basic MIDI features:
  80. - MIDI notes can be sent when in Music mode is on
  81. */
  82. #define MIDI_BASIC
  83. /* enable advanced MIDI features:
  84. - MIDI notes can be added to the keymap
  85. - Octave shift and transpose
  86. - Virtual sustain, portamento, and modulation wheel
  87. - etc.
  88. */
  89. #define MIDI_ADVANCED
  90. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  91. #define MIDI_TONE_KEYCODE_OCTAVES 2
  92. // Space Cadet Rollover - if set, allows to tap opposite shift key to cancel erroneous press
  93. #define DISABLE_SPACE_CADET_ROLLOVER
  94. // Prevent stuck modifiers
  95. #define PREVENT_STUCK_MODIFIERS
  96. #endif