config.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. Copyright 2021 Stefan Sundin "4pplet" <4pplet@protonmail.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_ROWS 10
  16. #define MATRIX_COLS 7
  17. #define MATRIX_COL_PINS { A0, B1, B0, A4, B5, B4, B3 }
  18. #define MATRIX_ROW_PINS { A2, A1, B8, A10, C15, A15, B7, B6, C14, C13}
  19. #define DIODE_DIRECTION COL2ROW
  20. /* In switch leds */
  21. #define BACKLIGHT_PIN A3
  22. #define BACKLIGHT_PWM_DRIVER PWMD2
  23. #define BACKLIGHT_PWM_CHANNEL 4
  24. #define BACKLIGHT_PAL_MODE 2
  25. #define BACKLIGHT_ON_STATE 1
  26. #define BACKLIGHT_LEVELS 10
  27. #define BACKLIGHT_BREATHING TRUE
  28. /* Underglow */
  29. #define RGB_DI_PIN A7
  30. #define WS2812_SPI SPID1
  31. #define WS2812_SPI_MOSI_PAL_MODE 0
  32. #define WS2812_SPI_SCK_PIN A5
  33. #define WS2812_SPI_SCK_PAL_MODE 0
  34. #define RGBLED_NUM 16
  35. #define RGBLIGHT_EFFECT_BREATHING
  36. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  37. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  38. #define RGBLIGHT_EFFECT_SNAKE
  39. #define RGBLIGHT_EFFECT_KNIGHT
  40. #define RGBLIGHT_EFFECT_CHRISTMAS
  41. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  42. #define RGBLIGHT_EFFECT_RGB_TEST
  43. #define RGBLIGHT_EFFECT_ALTERNATING
  44. #define RGBLIGHT_EFFECT_TWINKLE
  45. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  46. #define LOCKING_SUPPORT_ENABLE
  47. /* Locking resynchronize hack */
  48. #define LOCKING_RESYNC_ENABLE
  49. /* Indicator leds */
  50. #define LOCK_LIGHTS TRUE
  51. #define DISPLAY_LAYERS TRUE
  52. #define CAPS_PIN B2
  53. #define NUM_PIN B12
  54. #define SCROLL_PIN B13
  55. #define LAYER_1 B14
  56. #define LAYER_2 B15
  57. #define LAYER_3 A8
  58. #define LAYER_4 A9
  59. #define LAYER_5 B9
  60. /* Set 0 if debouncing isn't needed */
  61. #define DEBOUNCE 5
  62. /* Added extra layer for use of layer leds */
  63. #define DYNAMIC_KEYMAP_LAYER_COUNT 5