config.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. Copyright 2019 Danny Nguyen <danny@keeb.io>
  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. /* key matrix size */
  16. // Rows are doubled-up
  17. #define MATRIX_ROWS 10
  18. #define MATRIX_COLS 6
  19. // wiring of each half
  20. #define MATRIX_ROW_PINS { B1, F0, F5, F6, F7 }
  21. #define MATRIX_COL_PINS { F1, F4, D3, D2, B7, D4 }
  22. #define MATRIX_ROW_PINS_RIGHT { B1, B2, D2, F1, F4 }
  23. #define MATRIX_COL_PINS_RIGHT { D4, D7, D3, B7, F0, B3 }
  24. #define SPLIT_HAND_PIN D5
  25. #define QMK_ESC_OUTPUT F1
  26. #define QMK_ESC_INPUT B1
  27. #define QMK_LED B0
  28. #define QMK_SPEAKER C6
  29. #define ENCODERS_PAD_A { B2 }
  30. #define ENCODERS_PAD_B { B3 }
  31. #define ENCODERS_PAD_A_RIGHT { F7 }
  32. #define ENCODERS_PAD_B_RIGHT { F6 }
  33. /* COL2ROW or ROW2COL */
  34. #define DIODE_DIRECTION COL2ROW
  35. /* define if matrix has ghost */
  36. //#define MATRIX_HAS_GHOST
  37. /* number of backlight levels */
  38. // #define BACKLIGHT_LEVELS 3
  39. /* Set 0 if debouncing isn't needed */
  40. #define DEBOUNCE 5
  41. /* serial.c configuration for split keyboard */
  42. #define SOFT_SERIAL_PIN D0
  43. #define BACKLIGHT_PIN B5
  44. #define BACKLIGHT_LEVELS 5
  45. #define BACKLIGHT_DEFAULT_LEVEL 3
  46. /* ws2812 RGB LED */
  47. #define RGB_DI_PIN D6
  48. #define RGBLED_NUM 12 // Number of LEDs
  49. #define RGBLED_SPLIT { 6, 6 }
  50. #define RGBLIGHT_EFFECT_BREATHING
  51. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  52. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  53. #define RGBLIGHT_EFFECT_SNAKE
  54. #define RGBLIGHT_EFFECT_KNIGHT
  55. #define RGBLIGHT_EFFECT_CHRISTMAS
  56. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  57. #define RGBLIGHT_EFFECT_RGB_TEST
  58. #define RGBLIGHT_EFFECT_ALTERNATING
  59. #define RGBLIGHT_EFFECT_TWINKLE
  60. #define RGBLIGHT_DEFAULT_VAL 128
  61. #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)