config.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. Copyright 2019 @foostan
  3. Copyright 2020 Drashna Jaelre <@drashna>
  4. Copyright 2021 Elliot Powell @e11i0t23
  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_SERIAL
  18. #define SOFT_SERIAL_PIN D2
  19. /* ws2812 RGB LED */
  20. #define RGB_DI_PIN D3
  21. #ifdef RGBLIGHT_ENABLE
  22. # define RGBLIGHT_EFFECT_BREATHING
  23. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  24. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  25. # define RGBLIGHT_EFFECT_SNAKE
  26. # define RGBLIGHT_EFFECT_KNIGHT
  27. # define RGBLIGHT_EFFECT_CHRISTMAS
  28. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  29. # define RGBLIGHT_EFFECT_RGB_TEST
  30. # define RGBLIGHT_EFFECT_ALTERNATING
  31. # define RGBLIGHT_EFFECT_TWINKLE
  32. # define RGBLED_NUM 54
  33. # define RGBLED_SPLIT \
  34. { 27, 27 }
  35. #endif
  36. #ifdef RGB_MATRIX_ENABLE
  37. # define RGBLED_NUM 54 // Number of LEDs
  38. # define DRIVER_LED_TOTAL RGBLED_NUM
  39. # define RGB_MATRIX_SPLIT \
  40. { 27, 27 }
  41. # define SPLIT_TRANSPORT_MIRROR
  42. # define ENABLE_RGB_MATRIX_ALPHAS_MODS
  43. # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  44. # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  45. # define ENABLE_RGB_MATRIX_BREATHING
  46. # define ENABLE_RGB_MATRIX_BAND_SAT
  47. # define ENABLE_RGB_MATRIX_BAND_VAL
  48. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  49. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  50. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  51. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  52. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  53. # define ENABLE_RGB_MATRIX_RAINDROPS
  54. # define ENABLE_RGB_MATRIX_HUE_BREATHING
  55. # define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
  56. # define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  57. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  58. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  59. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  60. # define ENABLE_RGB_MATRIX_SPLASH
  61. # define ENABLE_RGB_MATRIX_SOLID_SPLASH
  62. #endif
  63. #define DIODE_DIRECTION COL2ROW
  64. #define SPLIT_USB_DETECT