config.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. Copyright 2020 KemoNine
  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. /* Basic matrix config */
  16. #define MATRIX_ROW_PINS { C7, F7, F6}
  17. #define MATRIX_COL_PINS { F0, F1, F4, F5 }
  18. /* COL2ROW or ROW2COL */
  19. #define DIODE_DIRECTION COL2ROW
  20. /* LEDs */
  21. #define RGB_DI_PIN D3
  22. #ifdef RGB_DI_PIN
  23. #define RGBLIGHT_EFFECT_BREATHING
  24. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  25. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  26. #define RGBLIGHT_EFFECT_SNAKE
  27. #define RGBLIGHT_EFFECT_KNIGHT
  28. #define RGBLIGHT_EFFECT_CHRISTMAS
  29. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  30. #define RGBLIGHT_EFFECT_RGB_TEST
  31. #define RGBLIGHT_EFFECT_ALTERNATING
  32. #define RGBLIGHT_EFFECT_TWINKLE
  33. #define RGBLED_NUM 4
  34. #define RGBLIGHT_HUE_STEP 8
  35. #define RGBLIGHT_SAT_STEP 8
  36. #define RGBLIGHT_VAL_STEP 8
  37. #define RGBLIGHT_LIMIT_VAL 240
  38. #endif
  39. /* Definitions for encoder tilt/press support */
  40. #define ENC_TILT_THRESHOLD 1
  41. #define PIN_TW_SW D2 // Center
  42. #define PIN_RJ_SW C6 // Center
  43. #define PIN_RJ_DIR_A D4 // Up
  44. #define PIN_RJ_DIR_B D7 // Left
  45. #define PIN_RJ_DIR_C B6 // Down
  46. #define PIN_RJ_DIR_D B4 // Right