config.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /* Copyright 2021 Dane Evans
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  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. ///https://thomasbaart.nl/2018/12/01/reducing-firmware-size-in-qmk/
  20. #define MASTER_LEFT
  21. // #define MASTER_RIGHT
  22. // #define EE_HANDS
  23. #define CUSTOM_FONT
  24. #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding
  25. #define QUICK_TAP_TERM 0
  26. #ifdef TAPPING_TERM
  27. #undef TAPPING_TERM
  28. #define TAPPING_TERM 200
  29. #endif
  30. #define ENCODER_DIRECTION_FLIP
  31. #define RGBLIGHT_SLEEP
  32. //
  33. #define RGBLIGHT_LAYERS
  34. /* ws2812 RGB LED */
  35. #define RGB_DI_PIN D3
  36. #ifdef RGB_MATRIX_ENABLE
  37. #define RGBLED_NUM 35 // Number of LEDs
  38. #define RGBLED_NUM 35 // Number of LEDs
  39. #define RGB_MATRIX_LED_COUNT RGBLED_NUM
  40. #endif
  41. #ifdef RGBLIGHT_ENABLE
  42. #undef RGBLED_NUM
  43. //#define RGBLIGHT_EFFECT_BREATHING
  44. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  45. //#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  46. //#define RGBLIGHT_EFFECT_SNAKE
  47. //#define RGBLIGHT_EFFECT_KNIGHT
  48. //#define RGBLIGHT_EFFECT_CHRISTMAS
  49. //#define RGBLIGHT_EFFECT_STATIC_GRADIENT
  50. //#define RGBLIGHT_EFFECT_RGB_TEST
  51. //#define RGBLIGHT_EFFECT_ALTERNATING
  52. //#define RGBLIGHT_EFFECT_TWINKLE
  53. #define RGBLED_NUM 70
  54. //#define RGBLED_SPLIT
  55. #define RGBLED_SPLIT { 35, 35 } // haven't figured out how to use this yet
  56. //#define RGBLED_NUM 30
  57. #define RGBLIGHT_LIMIT_VAL 120
  58. #define RGBLIGHT_HUE_STEP 10
  59. #define RGBLIGHT_SAT_STEP 17
  60. #define RGBLIGHT_VAL_STEP 17
  61. #endif
  62. #ifdef RGB_MATRIX_ENABLE
  63. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  64. // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  65. # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  66. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  67. // # 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)
  68. // # 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)
  69. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
  70. #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT
  71. # define RGB_MATRIX_HUE_STEP 8
  72. # define RGB_MATRIX_SAT_STEP 8
  73. # define RGB_MATRIX_VAL_STEP 8
  74. # define RGB_MATRIX_SPD_STEP 10
  75. /* Disable the animations you don't want/need. You will need to disable a good number of these *
  76. * because they take up a lot of space. Disable until you can successfully compile your firmware. */
  77. // # undef ENABLE_RGB_MATRIX_ALPHAS_MODS
  78. // # undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  79. // # undef ENABLE_RGB_MATRIX_BREATHING
  80. // # undef ENABLE_RGB_MATRIX_CYCLE_ALL
  81. // # undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  82. // # undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  83. // # undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  84. // # undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  85. // # undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  86. // # undef ENABLE_RGB_MATRIX_DUAL_BEACON
  87. // # undef ENABLE_RGB_MATRIX_RAINBOW_BEACON
  88. // # undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  89. // # undef ENABLE_RGB_MATRIX_RAINDROPS
  90. // # undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  91. // # undef ENABLE_RGB_MATRIX_TYPING_HEATMAP
  92. // # undef ENABLE_RGB_MATRIX_DIGITAL_RAIN
  93. // # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE
  94. // # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  95. // # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  96. // # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  97. // # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  98. // # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  99. // # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  100. // # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  101. // # undef ENABLE_RGB_MATRIX_SPLASH
  102. // # undef ENABLE_RGB_MATRIX_MULTISPLASH
  103. // # undef ENABLE_RGB_MATRIX_SOLID_SPLASH
  104. // # undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  105. #endif