config.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 9
  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, D4 }
  22. #define MATRIX_ROW_PINS_RIGHT { B3, B2, B6, B4, D7 }
  23. #define MATRIX_COL_PINS_RIGHT { F1, F0, F4, F5, F6, D5, C7, D3, B7 }
  24. #define SPLIT_HAND_PIN F7
  25. #define ENCODERS_PAD_A { F5 }
  26. #define ENCODERS_PAD_B { F6 }
  27. #define ENCODERS_PAD_A_RIGHT { D6 }
  28. #define ENCODERS_PAD_B_RIGHT { D4 }
  29. /* Set 0 if debouncing isn't needed */
  30. #define DEBOUNCE 5
  31. /* serial.c configuration for split keyboard */
  32. #define SOFT_SERIAL_PIN D0
  33. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  34. #define LOCKING_SUPPORT_ENABLE
  35. /* Locking resynchronize hack */
  36. #define LOCKING_RESYNC_ENABLE
  37. /* ws2812 RGB LED */
  38. #define RGB_DI_PIN E6
  39. #define RGBLED_NUM 16 // Number of LEDs
  40. #define RGBLED_SPLIT { 8, 8 }
  41. #define RGBLIGHT_LED_MAP { 1, 2, 3, 12, 13, 14, 15, 0, 7, 6, 5, 4, 11, 10, 9, 8 }
  42. #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
  43. #define RGBLIGHT_EFFECT_BREATHING
  44. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  45. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  46. #define RGBLIGHT_EFFECT_SNAKE
  47. #define RGBLIGHT_EFFECT_KNIGHT
  48. #define RGBLIGHT_EFFECT_CHRISTMAS
  49. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  50. #define RGBLIGHT_EFFECT_RGB_TEST
  51. #define RGBLIGHT_EFFECT_ALTERNATING
  52. #define RGBLIGHT_EFFECT_TWINKLE