config.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (C) 2022 Matt Chan
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  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. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "config_common.h"
  19. /* key matrix size */
  20. #define MATRIX_ROWS 5
  21. #define MATRIX_COLS 16
  22. /* key matrix pins */
  23. #define MATRIX_ROW_PINS { F1, F4, F5, F6, F7 }
  24. #define MATRIX_COL_PINS { E2, E6, C6, C7, D7, B6, B5, B4, B3, B2, B1, B0, D4, D6, D5, F0 }
  25. #define UNUSED_PINS
  26. /* COL2ROW or ROW2COL */
  27. #define DIODE_DIRECTION COL2ROW
  28. /* number of backlight levels */
  29. #define BACKLIGHT_PIN B7
  30. #ifdef BACKLIGHT_PIN
  31. #define BACKLIGHT_LEVELS 15
  32. #endif
  33. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  34. #define DEBOUNCE 5
  35. #define RGB_DI_PIN D1
  36. #ifdef RGB_DI_PIN
  37. #define RGBLIGHT_EFFECT_BREATHING
  38. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  39. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  40. #define RGBLIGHT_EFFECT_SNAKE
  41. #define RGBLIGHT_EFFECT_KNIGHT
  42. #define RGBLIGHT_EFFECT_CHRISTMAS
  43. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  44. #define RGBLIGHT_EFFECT_RGB_TEST
  45. #define RGBLIGHT_EFFECT_ALTERNATING
  46. #define RGBLIGHT_EFFECT_TWINKLE
  47. #define RGBLED_NUM 14
  48. #define RGBLIGHT_HUE_STEP 8
  49. #define RGBLIGHT_SAT_STEP 8
  50. #define RGBLIGHT_VAL_STEP 8
  51. #endif