config.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. Copyright 2021 Spencer Deven <splitlogicdesign@gmail.com>
  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 3 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. #include "config_common.h"
  16. #define SOFT_SERIAL_PIN D3
  17. #define SELECT_SOFT_SERIAL_SPEED 1
  18. /* key matrix size */
  19. #define MATRIX_ROWS 10
  20. #define MATRIX_COLS 7
  21. #define DIODE_DIRECTION COL2ROW
  22. #define ENCODERS_PAD_A { D2 }
  23. #define ENCODERS_PAD_B { D4 }
  24. #define ENCODERS_PAD_A_RIGHT { D4 }
  25. #define ENCODERS_PAD_B_RIGHT { D2 }
  26. #define ENCODER_RESOLUTION 3
  27. /* key matrix pins */
  28. #define MATRIX_ROW_PINS { C6, D7, E6, B4, F4 }
  29. #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 }
  30. /* Set 0 if debouncing isn't needed */
  31. #define DEBOUNCE 5
  32. #define RGB_DI_PIN B5
  33. #ifdef RGBLIGHT_ENABLE
  34. #define RGBLED_NUM 68
  35. #define RGBLIGHT_SPLIT
  36. #define RGBLED_SPLIT { 34, 34 }
  37. #define RGBLIGHT_LIMIT_VAL 170
  38. #define RGBLIGHT_EFFECT_BREATHING
  39. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  40. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  41. #define RGBLIGHT_EFFECT_SNAKE
  42. #define RGBLIGHT_EFFECT_KNIGHT
  43. #define RGBLIGHT_EFFECT_CHRISTMAS
  44. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  45. #define RGBLIGHT_EFFECT_RGB_TEST
  46. #define RGBLIGHT_EFFECT_ALTERNATING
  47. #define RGBLIGHT_EFFECT_TWINKLE
  48. #define RGBLIGHT_HUE_STEP 8
  49. #define RGBLIGHT_SAT_STEP 8
  50. #define RGBLIGHT_VAL_STEP 8
  51. #endif
  52. #ifdef RGB_MATRIX_ENABLE
  53. #define RGB_MATRIX_LED_COUNT 68
  54. #define RGB_MATRIX_SPLIT { 34, 34 }
  55. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
  56. #define RGB_MATRIX_KEYPRESSES
  57. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  58. #define RGB_MATRIX_HUE_STEP 8
  59. #define RGB_MATRIX_SAT_STEP 8
  60. #define RGB_MATRIX_VAL_STEP 8
  61. #define RGB_MATRIX_SPD_STEP 10
  62. #endif