You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.2 KiB

  1. /*
  2. Copyright 2021 Elliot Powell
  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, B0, A7, B14, A5, A4, A3, B9, B8, B7, B6, B5, B4, B3, A15 }
  16. #define MATRIX_ROW_PINS { A9, A10, B12, A2, C13 }
  17. #define DIODE_DIRECTION COL2ROW
  18. #define BACKLIGHT_PIN A6
  19. #define BACKLIGHT_PWM_DRIVER PWMD3
  20. #define BACKLIGHT_PWM_CHANNEL 1
  21. #define BACKLIGHT_PAL_MODE 1
  22. #define BACKLIGHT_LEVELS 6
  23. #define BACKLIGHT_BREATHING
  24. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  25. #define LOCKING_SUPPORT_ENABLE
  26. /* Locking resynchronize hack */
  27. #define LOCKING_RESYNC_ENABLE
  28. #define RGB_DI_PIN B15
  29. #define RGBLED_NUM 14
  30. #define WS2812_SPI SPID2
  31. #define WS2812_SPI_MOSI_PAL_MODE 0
  32. #define WS2812_SPI_SCK_PAL_MODE 0
  33. #define WS2812_SPI_SCK_PIN B13
  34. #define RGBLIGHT_EFFECT_BREATHING
  35. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  36. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  37. #define RGBLIGHT_EFFECT_SNAKE
  38. #define RGBLIGHT_EFFECT_KNIGHT
  39. #define RGBLIGHT_EFFECT_CHRISTMAS
  40. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  41. #define RGBLIGHT_EFFECT_RGB_TEST
  42. #define RGBLIGHT_EFFECT_ALTERNATING
  43. #define RGBLIGHT_EFFECT_TWINKLE
  44. #define ENCODERS_PAD_A { A8 }
  45. #define ENCODERS_PAD_B { A1 }
  46. #define ENCODER_RESOLUTION 2
  47. // 2 bits for 4 layout options
  48. #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2
  49. /*
  50. * Feature disable options
  51. * These options are also useful to firmware size reduction.
  52. */
  53. /* disable debug print */
  54. //#define NO_DEBUG
  55. /* disable print */
  56. //#define NO_PRINT
  57. /* disable action features */
  58. //#define NO_ACTION_LAYER
  59. //#define NO_ACTION_TAPPING
  60. //#define NO_ACTION_ONESHOT
  61. #define SLEEP_LED_GPT_DRIVER GPTD1