config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * config.h
  3. *
  4. Copyright 2021 astro
  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. #include "config_common.h"
  18. /* key matrix size */
  19. #define MATRIX_ROWS 6
  20. #define MATRIX_COLS 15
  21. #define MATRIX_ROW_PINS {D3, D5, D4, D6, B5, B4}
  22. #define MATRIX_COL_PINS {B7, B3, B2, B1, B0, F0, F1, F4, F5, F6, F7, C7, C6, B6, D7}
  23. #define UNUSED_PINS
  24. #define DIODE_DIRECTION COL2ROW
  25. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  26. #define DEBOUNCE 5
  27. /*
  28. * Feature disable options
  29. * These options are also useful to firmware size reduction.
  30. */
  31. /* disable debug print */
  32. //#define NO_DEBUG
  33. /* disable print */
  34. //#define NO_PRINT
  35. //rgb light setting
  36. #define RGBLED_NUM 4
  37. #define RGB_DI_PIN E2
  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. // led pins
  52. #define LED_CAPS_LOCK_PIN E6
  53. #define LED_SCROLL_LOCK_PIN D2