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.

143 lines
5.3 KiB

  1. /*
  2. Copyright 2019 MechMerlin
  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. #pragma once
  15. /* key matrix size */
  16. #define MATRIX_ROWS 4
  17. #define MATRIX_COLS 4
  18. /*
  19. * Keyboard Matrix Assignments
  20. *
  21. * Change this to how you wired your keyboard
  22. * COLS: AVR pins used for columns, left to right
  23. * ROWS: AVR pins used for rows, top to bottom
  24. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  25. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  26. *
  27. */
  28. #define MATRIX_ROW_PINS \
  29. { D1, D0, F4, F5 }
  30. #define MATRIX_COL_PINS \
  31. { D4, C6, F6, F7 }
  32. /* COL2ROW, ROW2COL*/
  33. #define DIODE_DIRECTION COL2ROW
  34. /*
  35. * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
  36. */
  37. #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
  38. #define RGB_DI_PIN D3
  39. #ifdef RGB_DI_PIN
  40. # define RGBLED_NUM 16 // Add 12 if attaching the RGB LED ring
  41. # define RGB_MATRIX_LED_COUNT RGBLED_NUM
  42. # ifdef RGBLIGHT_ENABLE
  43. # define RGBLIGHT_HUE_STEP 8
  44. # define RGBLIGHT_SAT_STEP 8
  45. # define RGBLIGHT_VAL_STEP 8
  46. # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  47. # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  48. # define RGBLIGHT_EFFECT_BREATHING
  49. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  50. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  51. # define RGBLIGHT_EFFECT_SNAKE
  52. # define RGBLIGHT_EFFECT_KNIGHT
  53. # define RGBLIGHT_EFFECT_CHRISTMAS
  54. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  55. # define RGBLIGHT_EFFECT_RGB_TEST
  56. # define RGBLIGHT_EFFECT_ALTERNATING
  57. # define RGBLIGHT_EFFECT_TWINKLE
  58. # elif defined RGB_MATRIX_ENABLE
  59. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  60. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS // reacts to keyreleases (instead of keypresses)
  61. // RGB Matrix Animation modes. Explicitly enabled
  62. // For full list of effects, see:
  63. // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
  64. # define ENABLE_RGB_MATRIX_ALPHAS_MODS
  65. # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  66. # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  67. # define ENABLE_RGB_MATRIX_BREATHING
  68. # define ENABLE_RGB_MATRIX_BAND_SAT
  69. # define ENABLE_RGB_MATRIX_BAND_VAL
  70. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  71. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  72. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  73. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  74. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  75. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  76. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  77. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  78. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  79. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  80. # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  81. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  82. # define ENABLE_RGB_MATRIX_DUAL_BEACON
  83. # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  84. # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  85. # define ENABLE_RGB_MATRIX_RAINDROPS
  86. # define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  87. # define ENABLE_RGB_MATRIX_HUE_BREATHING
  88. # define ENABLE_RGB_MATRIX_HUE_PENDULUM
  89. # define ENABLE_RGB_MATRIX_HUE_WAVE
  90. # define ENABLE_RGB_MATRIX_PIXEL_RAIN
  91. # define ENABLE_RGB_MATRIX_PIXEL_FLOW
  92. # define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
  93. // enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
  94. # define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  95. # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  96. // enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
  97. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  98. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  99. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  100. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  101. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  102. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  103. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  104. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  105. # define ENABLE_RGB_MATRIX_SPLASH
  106. # define ENABLE_RGB_MATRIX_MULTISPLASH
  107. # define ENABLE_RGB_MATRIX_SOLID_SPLASH
  108. # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  109. # endif
  110. #endif
  111. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  112. #define LOCKING_SUPPORT_ENABLE
  113. /* Locking resynchronize hack */
  114. #define LOCKING_RESYNC_ENABLE
  115. /*
  116. * Feature disable options
  117. * These options are also useful to firmware size reduction.
  118. */
  119. /* disable debug print */
  120. //#define NO_DEBUG
  121. /* disable print */
  122. //#define NO_PRINT
  123. /* disable action features */
  124. //#define NO_ACTION_LAYER
  125. //#define NO_ACTION_TAPPING
  126. //#define NO_ACTION_ONESHOT