config.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* Copyright 2020 @ben_roe (keycapsss.com)
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0x7983
  19. #define PRODUCT_ID 0x4B69 //Ki
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER Keycapsss
  22. #define PRODUCT Kimiko
  23. /* key matrix size */
  24. // rows are doubled-up for split-keyboard
  25. #define MATRIX_ROWS 10
  26. #define MATRIX_COLS 6
  27. #define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
  28. #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 }
  29. /* COL2ROW or ROW2COL */
  30. #define DIODE_DIRECTION COL2ROW
  31. /* Set 0 if debouncing isn't needed */
  32. #define DEBOUNCE 5
  33. #define SOFT_SERIAL_PIN D2
  34. /* SK6812 RGB LED */
  35. #define RGB_DI_PIN D3
  36. #ifdef RGBLIGHT_ENABLE
  37. # define RGBLED_NUM 60 // Total number of LEDs
  38. # define RGBLED_SPLIT { 30, 30 } // LEDs per side
  39. # define RGBLIGHT_SPLIT
  40. #endif
  41. // Limit the power draw
  42. #ifdef IOS_DEVICE_ENABLE
  43. #define RGBLIGHT_LIMIT_VAL 40
  44. #else
  45. #define RGBLIGHT_LIMIT_VAL 80
  46. #endif
  47. #ifdef ENCODER_ENABLE
  48. # define ENCODERS_PAD_A { F4 }
  49. # define ENCODERS_PAD_B { F5 }
  50. # define ENCODERS_PAD_A_RIGHT { F4 }
  51. # define ENCODERS_PAD_B_RIGHT { F5 }
  52. #endif
  53. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  54. #define LOCKING_SUPPORT_ENABLE
  55. /* Locking resynchronize hack */
  56. #define LOCKING_RESYNC_ENABLE