config.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. Copyright 2015 Jun Wako <wakojun@gmail.com>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #define MATRIX_COL_PINS { B1, B2, B10, B11, B12, B14, A8, A9, A10, A3, B0, A2, A1, A7, A0, B4, B6, B7 }
  16. #define MATRIX_ROW_PINS { A15, B3, B5, A4, A5, F1 }
  17. #define DIODE_DIRECTION COL2ROW
  18. #define BACKLIGHT_PWM_DRIVER PWMD3
  19. #define BACKLIGHT_PWM_CHANNEL 1
  20. #define BACKLIGHT_PAL_MODE 1
  21. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  22. #define LOCKING_SUPPORT_ENABLE
  23. /* Locking resynchronize hack */
  24. #define LOCKING_RESYNC_ENABLE
  25. #define RGBLIGHT_EFFECT_BREATHING
  26. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  27. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  28. #define RGBLIGHT_EFFECT_SNAKE
  29. #define RGBLIGHT_EFFECT_KNIGHT
  30. #define RGBLIGHT_EFFECT_CHRISTMAS
  31. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  32. #define RGBLIGHT_EFFECT_RGB_TEST
  33. #define RGBLIGHT_EFFECT_ALTERNATING
  34. #define RGBLIGHT_EFFECT_TWINKLE
  35. #define RGB_DI_PIN B15
  36. #define RGBLED_NUM 20
  37. #define WS2812_SPI SPID2
  38. #define WS2812_SPI_MOSI_PAL_MODE 0
  39. #define WS2812_SPI_SCK_PAL_MODE 0
  40. #define WS2812_SPI_SCK_PIN B13
  41. /*
  42. * Feature disable options
  43. * These options are also useful to firmware size reduction.
  44. */
  45. /* disable debug print */
  46. //#define NO_DEBUG
  47. /* disable print */
  48. //#define NO_PRINT
  49. /* disable action features */
  50. //#define NO_ACTION_LAYER
  51. //#define NO_ACTION_TAPPING
  52. //#define NO_ACTION_ONESHOT