config.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* Copyright 2021 Danny Nguyen <danny@keeb.io>
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #pragma once
  14. #include "config_common.h"
  15. /* key matrix size */
  16. #define MATRIX_ROWS 4
  17. #define MATRIX_COLS 12
  18. /* Keyboard Matrix Assignments */
  19. #define MATRIX_ROW_PINS { B9, A9, A8, B15 }
  20. #define MATRIX_COL_PINS { B10, B2, A3, A4, B7, B6, A10, C13, C14, C15, F0, F1 }
  21. #define ENCODERS_PAD_A { A1 }
  22. #define ENCODERS_PAD_B { A2 }
  23. #define TAP_CODE_DELAY 10
  24. #define DIODE_DIRECTION COL2ROW
  25. #define BACKLIGHT_PIN A6
  26. #define BACKLIGHT_PWM_DRIVER PWMD3
  27. #define BACKLIGHT_PWM_CHANNEL 1
  28. #define BACKLIGHT_PAL_MODE 1
  29. // #define BACKLIGHT_BREATHING
  30. #define BACKLIGHT_LEVELS 7
  31. #define RGB_DI_PIN D3
  32. #ifdef RGB_DI_PIN
  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 255 /* The maximum brightness level */
  38. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  39. #define RGBLIGHT_EFFECT_BREATHING
  40. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  41. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  42. #define RGBLIGHT_EFFECT_SNAKE
  43. #define RGBLIGHT_EFFECT_KNIGHT
  44. #define RGBLIGHT_EFFECT_CHRISTMAS
  45. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  46. #define RGBLIGHT_EFFECT_RGB_TEST
  47. #define RGBLIGHT_EFFECT_ALTERNATING
  48. #define RGBLIGHT_EFFECT_TWINKLE
  49. #endif
  50. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  51. #define DEBOUNCE 5
  52. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  53. #define LOCKING_SUPPORT_ENABLE
  54. /* Locking resynchronize hack */
  55. #define LOCKING_RESYNC_ENABLE