config.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. Copyright 2021 @wekey
  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. /*
  16. * Keyboard Matrix Assignments
  17. *
  18. * Change this to how you wired your keyboard
  19. * COLS: AVR pins used for columns, left to right
  20. * ROWS: AVR pins used for rows, top to bottom
  21. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  22. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  23. *
  24. */
  25. #define MATRIX_ROW_PINS { F1, D7, B4, B5, B6, F6 }
  26. #define MATRIX_COL_PINS { F4, F5, C7, D6, D4 }
  27. /* COL2ROW, ROW2COL */
  28. #define DIODE_DIRECTION COL2ROW
  29. #ifdef RGB_MATRIX_ENABLE
  30. // The pin connected to the data pin of the LEDs
  31. #define RGB_DI_PIN C6
  32. // The number of LEDs connected
  33. #define RGB_MATRIX_LED_COUNT 27
  34. #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  35. #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  36. #define RGB_MATRIX_DEFAULT_HUE 108 // Sets the default hue value, if none has been set
  37. #define RGB_MATRIX_DEFAULT_SAT 255 // Sets the default saturation value, if none has been set
  38. #define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set
  39. #define RGB_MATRIX_DEFAULT_SPD 127 // Sets the default animation speed, if none has been set
  40. #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_SOLID_COLOR // Sets the default mode, if none has been set
  41. // RGB Matrix Animation modes. Explicitly enabled
  42. // For full list of effects, see:
  43. // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
  44. // # define ENABLE_RGB_MATRIX_ALPHAS_MODS
  45. // # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  46. // # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  47. // # define ENABLE_RGB_MATRIX_BREATHING
  48. // # define ENABLE_RGB_MATRIX_BAND_SAT
  49. // # define ENABLE_RGB_MATRIX_BAND_VAL
  50. // # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  51. // # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  52. // # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  53. // # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  54. // # define ENABLE_RGB_MATRIX_CYCLE_ALL
  55. // # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  56. // # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  57. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  58. // # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  59. // # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  60. // # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  61. // # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  62. // # define ENABLE_RGB_MATRIX_DUAL_BEACON
  63. // # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  64. // # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  65. // # define ENABLE_RGB_MATRIX_RAINDROPS
  66. // # define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  67. // # define ENABLE_RGB_MATRIX_HUE_BREATHING
  68. // # define ENABLE_RGB_MATRIX_HUE_PENDULUM
  69. // # define ENABLE_RGB_MATRIX_HUE_WAVE
  70. // # define ENABLE_RGB_MATRIX_PIXEL_RAIN
  71. // # define ENABLE_RGB_MATRIX_PIXEL_FLOW
  72. // # define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
  73. // enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
  74. // # define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  75. // # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  76. // enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
  77. // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  78. // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  79. // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  80. // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  81. // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  82. // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  83. // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  84. // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  85. // # define ENABLE_RGB_MATRIX_SPLASH
  86. // # define ENABLE_RGB_MATRIX_MULTISPLASH
  87. // # define ENABLE_RGB_MATRIX_SOLID_SPLASH
  88. // # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  89. #endif
  90. #define ENCODERS_CW_KEY { { 4, 5 } }
  91. #define ENCODERS_CCW_KEY { { 4, 3 } }
  92. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  93. #define LOCKING_SUPPORT_ENABLE
  94. /* Locking resynchronize hack */
  95. #define LOCKING_RESYNC_ENABLE
  96. /*
  97. * Feature disable options
  98. * These options are also useful to firmware size reduction.
  99. */
  100. /* disable debug print */
  101. //#define NO_DEBUG
  102. /* disable print */
  103. //#define NO_PRINT
  104. /* disable action features */
  105. //#define NO_ACTION_LAYER
  106. //#define NO_ACTION_TAPPING
  107. //#define NO_ACTION_ONESHOT