config.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 5
  20. #define MATRIX_COLS 13
  21. #define MATRIX_ROW_PINS { F1, B7, F7, F5, F4}
  22. #define MATRIX_COL_PINS { F6, B3, B2, B1, B0, C7, C6, B6, B5, B4, D7, D6, D4}
  23. #define UNUSED_PINS
  24. #define DIODE_DIRECTION ROW2COL
  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 D1
  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. //pin setting
  52. #define LED_CAPS_LOCK_PIN E2
  53. #define LED_POWER_PIN D5
  54. #define CHG_EN_PIN E6
  55. #define BATTERY_LEVEL_PIN F0