config.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Copyright 2022 Andrew Kannan (@awkannan)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #define MATRIX_ROWS 6
  5. #define MATRIX_COLS 18
  6. #define MATRIX_COL_PINS { B1, B2, B10, B11, B12, B14, A8, A9, A10, A3, B0, A2, A1, A7, A0, B4, B6, B7 }
  7. #define MATRIX_ROW_PINS { A15, B3, B5, A4, A5, F1 }
  8. #define DIODE_DIRECTION COL2ROW
  9. #define BACKLIGHT_PIN A6
  10. #define BACKLIGHT_PWM_DRIVER PWMD3
  11. #define BACKLIGHT_PWM_CHANNEL 1
  12. #define BACKLIGHT_PAL_MODE 1
  13. #define BACKLIGHT_LEVELS 6
  14. #define BACKLIGHT_BREATHING
  15. #define BREATHING_PERIOD 6
  16. #define LED_CAPS_LOCK_PIN B9
  17. #define LED_SCROLL_LOCK_PIN F0
  18. #define LED_PIN_ON_STATE 0
  19. /* define if matrix has ghost */
  20. //#define MATRIX_HAS_GHOST
  21. /* Set 0 if debouncing isn't needed */
  22. #define DEBOUNCE 5
  23. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  24. #define LOCKING_SUPPORT_ENABLE
  25. /* Locking resynchronize hack */
  26. #define LOCKING_RESYNC_ENABLE
  27. #define RGB_DI_PIN B15
  28. #define RGBLED_NUM 20
  29. #define WS2812_SPI SPID2
  30. #define WS2812_SPI_MOSI_PAL_MODE 0
  31. #define WS2812_SPI_SCK_PAL_MODE 0
  32. #define WS2812_SPI_SCK_PIN B13
  33. #define RGBLIGHT_EFFECT_BREATHING
  34. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  35. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  36. #define RGBLIGHT_EFFECT_SNAKE
  37. #define RGBLIGHT_EFFECT_KNIGHT
  38. #define RGBLIGHT_EFFECT_CHRISTMAS
  39. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  40. #define RGBLIGHT_EFFECT_RGB_TEST
  41. #define RGBLIGHT_EFFECT_ALTERNATING
  42. #define RGBLIGHT_EFFECT_TWINKLE
  43. /*
  44. * Feature disable options
  45. * These options are also useful to firmware size reduction.
  46. */
  47. /* disable debug print */
  48. //#define NO_DEBUG
  49. /* disable print */
  50. //#define NO_PRINT
  51. /* disable action features */
  52. //#define NO_ACTION_LAYER
  53. //#define NO_ACTION_TAPPING
  54. //#define NO_ACTION_ONESHOT