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.

178 lines
6.4 KiB

8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
6 years ago
6 years ago
6 years ago
8 years ago
8 years ago
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
  4. Copyright 2015 ZSA Technology Labs Inc (@zsa)
  5. Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. /* key matrix size */
  19. #define MATRIX_ROWS 14
  20. #define MATRIX_ROWS_PER_SIDE (MATRIX_ROWS / 2)
  21. #define MATRIX_COLS 6
  22. #define COL_EXPANDED { true, true, true, true, true, true, true, false, false, false, false, false, false, false }
  23. #define MATRIX_ONBOARD_ROW_PINS { 0, 0, 0, 0, 0, 0, 0, B0, B1, B2, B3, D2, D3, C6 }
  24. #define MATRIX_ONBOARD_COL_PINS { F0, F1, F4, F5, F6, F7 }
  25. #define DIODE_DIRECTION COL2ROW
  26. #define EXPANDER_COL_REGISTER GPIOB
  27. #define EXPANDER_ROW_REGISTER GPIOA
  28. #define MATRIX_EXPANDER_COL_PINS { 5, 4, 3, 2, 1, 0 }
  29. #define MATRIX_EXPANDER_ROW_PINS { 0, 1, 2, 3, 4, 5, 6 }
  30. #define MOUSEKEY_INTERVAL 20
  31. #define MOUSEKEY_DELAY 0
  32. #define MOUSEKEY_TIME_TO_MAX 60
  33. #define MOUSEKEY_MAX_SPEED 7
  34. #define MOUSEKEY_WHEEL_DELAY 400
  35. #define MOUSEKEY_WHEEL_INTERVAL MOUSEKEY_INTERVAL
  36. #define MOUSEKEY_WHEEL_MAX_SPEED MOUSEKEY_MAX_SPEED
  37. #define MOUSEKEY_WHEEL_TIME_TO_MAX MOUSEKEY_TIME_TO_MAX
  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. get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  45. get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  46. )
  47. #ifndef LED_BRIGHTNESS_LO
  48. #define LED_BRIGHTNESS_LO 15
  49. #endif
  50. #ifndef LED_BRIGHTNESS_HI
  51. #define LED_BRIGHTNESS_HI 255
  52. #endif
  53. #define LED_BRIGHTNESS_DEFAULT (LED_BRIGHTNESS_HI)
  54. // Pick one of the modes
  55. // Defaults to 15 mirror, for legacy behavior
  56. // #define ERGODOX_LED_15 // Addresses 15 LEDs, but same position on both halves
  57. // #define ERGODOX_LED_15_MIRROR // Addresses 15 LEDs, but are mirrored
  58. // #define ERGODOX_LED_30 // Addresses all 30 LED individually
  59. /* fix space cadet rollover issue */
  60. #define DISABLE_SPACE_CADET_ROLLOVER
  61. #define RGBW
  62. /*
  63. * The debounce filtering reports a key/switch change directly,
  64. * without any extra delay. After that the debounce logic will filter
  65. * all further changes, until the key/switch reports the same state for
  66. * the given count of scans.
  67. * So a perfect switch will get a short debounce period and
  68. * a bad key will get a much longer debounce period.
  69. * The result is an adaptive debouncing period for each switch.
  70. *
  71. * If you don't define it here, the matrix code will default to
  72. * 5, which is now closer to 10ms, but still plenty according to
  73. * manufacturer specs.
  74. */
  75. // RGB backlight
  76. #define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
  77. #define IS31FL3731_I2C_ADDRESS_2 IS31FL3731_I2C_ADDRESS_VCC
  78. #define DRIVER_1_LED_TOTAL 24
  79. #define DRIVER_2_LED_TOTAL 24
  80. #define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
  81. #define RGB_MATRIX_LED_PROCESS_LIMIT 5
  82. #define RGB_MATRIX_LED_FLUSH_LIMIT 26
  83. #define RGB_MATRIX_SLEEP
  84. // RGB Matrix Animation modes. Explicitly enabled
  85. // For full list of effects, see:
  86. // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
  87. #define ENABLE_RGB_MATRIX_ALPHAS_MODS
  88. #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  89. #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  90. #define ENABLE_RGB_MATRIX_BREATHING
  91. #define ENABLE_RGB_MATRIX_BAND_SAT
  92. #define ENABLE_RGB_MATRIX_BAND_VAL
  93. #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  94. #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  95. #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  96. #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  97. #define ENABLE_RGB_MATRIX_CYCLE_ALL
  98. #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  99. #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  100. #define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  101. #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  102. #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  103. #define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  104. #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  105. #define ENABLE_RGB_MATRIX_DUAL_BEACON
  106. #define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  107. #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  108. #define ENABLE_RGB_MATRIX_RAINDROPS
  109. #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  110. #define ENABLE_RGB_MATRIX_HUE_BREATHING
  111. #define ENABLE_RGB_MATRIX_HUE_PENDULUM
  112. #define ENABLE_RGB_MATRIX_HUE_WAVE
  113. #define ENABLE_RGB_MATRIX_PIXEL_RAIN
  114. #define ENABLE_RGB_MATRIX_PIXEL_FLOW
  115. #define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
  116. // enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
  117. // #define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  118. // #define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  119. // enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
  120. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  121. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  122. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  123. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  124. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  125. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  126. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  127. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  128. // #define ENABLE_RGB_MATRIX_SPLASH
  129. // #define ENABLE_RGB_MATRIX_MULTISPLASH
  130. // #define ENABLE_RGB_MATRIX_SOLID_SPLASH
  131. // #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  132. // #define RGBLIGHT_COLOR_LAYER_0 0x00, 0x00, 0xFF
  133. /* #define RGBLIGHT_COLOR_LAYER_1 0x00, 0x00, 0xFF */
  134. /* #define RGBLIGHT_COLOR_LAYER_2 0xFF, 0x00, 0x00 */
  135. /* #define RGBLIGHT_COLOR_LAYER_3 0x00, 0xFF, 0x00 */
  136. /* #define RGBLIGHT_COLOR_LAYER_4 0xFF, 0xFF, 0x00 */
  137. /* #define RGBLIGHT_COLOR_LAYER_5 0x00, 0xFF, 0xFF */
  138. /* #define RGBLIGHT_COLOR_LAYER_6 0xFF, 0x00, 0xFF */
  139. /* #define RGBLIGHT_COLOR_LAYER_7 0xFF, 0xFF, 0xFF */
  140. /*
  141. * Feature disable options
  142. * These options are also useful to firmware size reduction.
  143. */
  144. /* disable debug print */
  145. // #define NO_DEBUG
  146. /* disable print */
  147. // #define NO_PRINT
  148. /* disable action features */
  149. //#define NO_ACTION_LAYER
  150. //#define NO_ACTION_TAPPING
  151. //#define NO_ACTION_ONESHOT
  152. //#define DEBUG_MATRIX_SCAN_RATE