config.h 2.0 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 12
  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, B0 }
  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, B0 }
  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. #define BACKLIGHT_PIN B5
  32. #define CAPS_LOCK_LED_PIN B6
  33. /* serial.c configuration for split keyboard */
  34. #define SOFT_SERIAL_PIN D0
  35. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  36. #define LOCKING_SUPPORT_ENABLE
  37. /* Locking resynchronize hack */
  38. #define LOCKING_RESYNC_ENABLE
  39. /* ws2812 RGB LED */
  40. #define RGB_DI_PIN E6
  41. #define RGBLIGHT_ANIMATIONS
  42. #define RGBLED_NUM 16 // Number of LEDs
  43. #define RGBLED_SPLIT { 8, 8 }
  44. #define RGBLIGHT_LED_MAP { 1, 2, 3, 12, 13, 14, 15, 0, 7, 6, 5, 4, 11, 10, 9, 8 }
  45. #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
  46. // Set right column, left macro, 1.75u shift, split spaces, and 5x1u on by default
  47. #define VIA_EEPROM_LAYOUT_OPTIONS_DEFAULT 0x00DE
  48. #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2