config.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. /* key matrix size */
  15. // Rows are doubled-up
  16. #define MATRIX_ROWS 10
  17. #define MATRIX_COLS 8
  18. #define DIODE_DIRECTION COL2ROW
  19. // wiring of each half
  20. #define MATRIX_ROW_PINS { B1, B2, C7, B4, D7 }
  21. #define MATRIX_COL_PINS { F4, F1, F0, B7, B3, D2, D3, D5 }
  22. #define SPLIT_HAND_PIN F7
  23. #define ENCODERS_PAD_A { F5 }
  24. #define ENCODERS_PAD_B { F6 }
  25. /* Set 0 if debouncing isn't needed */
  26. #define DEBOUNCE 5
  27. #define BACKLIGHT_PIN B5
  28. /* serial.c configuration for split keyboard */
  29. #define SOFT_SERIAL_PIN D0
  30. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  31. #define LOCKING_SUPPORT_ENABLE
  32. /* Locking resynchronize hack */
  33. #define LOCKING_RESYNC_ENABLE
  34. /* ws2812 RGB LED */
  35. #define RGB_DI_PIN E6
  36. #define RGBLIGHT_EFFECT_BREATHING
  37. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  38. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  39. #define RGBLIGHT_EFFECT_SNAKE
  40. #define RGBLIGHT_EFFECT_KNIGHT
  41. #define RGBLIGHT_EFFECT_CHRISTMAS
  42. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  43. #define RGBLIGHT_EFFECT_RGB_TEST
  44. #define RGBLIGHT_EFFECT_ALTERNATING
  45. #define RGBLIGHT_EFFECT_TWINKLE
  46. #define RGBLED_NUM 16 // Number of LEDs
  47. #define RGBLED_SPLIT { 8, 8 }
  48. #define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 12, 13, 14, 15, 4, 5, 6, 7, 8, 9, 10, 11 }
  49. #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)