config.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. This is the c configuration file for the keymap
  3. Copyright 2012 Jun Wako <wakojun@gmail.com>
  4. Copyright 2015 Jack Humbert
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. //#define USE_MATRIX_I2C
  18. /* Select hand configuration */
  19. #define MASTER_LEFT
  20. // #define MASTER_RIGHT
  21. // #define EE_HANDS
  22. // #define TAPPING_FORCE_HOLD
  23. #define TAPPING_TERM 150
  24. #define RETRO_TAPPING
  25. #define IGNORE_MOD_TAP_INTERRUPT
  26. #ifdef RGBLIGHT_ENABLE
  27. #undef RGBLED_NUM
  28. #define RGBLED_NUM 27
  29. #define RGBLIGHT_ANIMATIONS
  30. #define RGBLIGHT_SLEEP
  31. #define RGBLIGHT_SPLIT
  32. #define RGBLIGHT_LIMIT_VAL 120
  33. #define RGBLIGHT_HUE_STEP 10
  34. #define RGBLIGHT_SAT_STEP 17
  35. #define RGBLIGHT_VAL_STEP 17
  36. #endif
  37. #ifdef OLED_ENABLE
  38. # define SPLIT_LAYER_STATE_ENABLE
  39. # define SPLIT_LED_STATE_ENABLE
  40. # define SPLIT_MODS_ENABLE
  41. # define SPLIT_OLED_ENABLE
  42. # define OLED_FONT_H "keyboards/crkbd/keymaps/soundmonster/glcdfont.c"
  43. # define OLED_TIMEOUT 30000
  44. #endif
  45. #ifdef RGB_MATRIX_ENABLE
  46. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  47. // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  48. # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  49. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  50. # define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
  51. # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
  52. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
  53. # define RGB_MATRIX_HUE_STEP 8
  54. # define RGB_MATRIX_SAT_STEP 8
  55. # define RGB_MATRIX_VAL_STEP 8
  56. # define RGB_MATRIX_SPD_STEP 10
  57. /* Disable the animations you don't want/need. You will need to disable a good number of these *
  58. * because they take up a lot of space. Disable until you can successfully compile your firmware. */
  59. # define ENABLE_RGB_MATRIX_ALPHAS_MODS
  60. # undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  61. # undef ENABLE_RGB_MATRIX_BREATHING
  62. # undef ENABLE_RGB_MATRIX_BAND_SAT
  63. # undef ENABLE_RGB_MATRIX_BAND_VAL
  64. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  65. # undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  66. # undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  67. # undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  68. # undef ENABLE_RGB_MATRIX_CYCLE_ALL
  69. # undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  70. # undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  71. # undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  72. # undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  73. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  74. # undef ENABLE_RGB_MATRIX_DUAL_BEACON
  75. # undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  76. # undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  77. # undef ENABLE_RGB_MATRIX_RAINBOW_BEACON
  78. # undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  79. # undef ENABLE_RGB_MATRIX_RAINDROPS
  80. # undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  81. # define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  82. # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  83. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE
  84. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  85. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  86. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  87. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  88. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  89. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  90. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  91. # undef ENABLE_RGB_MATRIX_SPLASH
  92. # define ENABLE_RGB_MATRIX_MULTISPLASH
  93. # undef ENABLE_RGB_MATRIX_SOLID_SPLASH
  94. # undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  95. #endif