You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.9 KiB

  1. /* Copyright 2021 KDon<370490639@qq.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. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0x4B44
  20. #define PRODUCT_ID 0x3935
  21. #define DEVICE_VER 0x0002
  22. #define MANUFACTURER Kabe_Don
  23. #define PRODUCT 98e
  24. /* key matrix size */
  25. #define MATRIX_ROWS 12
  26. #define MATRIX_COLS 11
  27. #define MATRIX_ROW_PINS {A4,B10,B2,B1,B0,B15,B13,B14,B12,A10,A9,A8}
  28. #define MATRIX_COL_PINS {A0,B7,B8,B6,A3,A2,A1,B9,A7,A5,A6}
  29. #define DIODE_DIRECTION ROW2COL
  30. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  31. #define DEBOUNCE 5
  32. #define FORCE_NKRO
  33. #define RGB_DI_PIN B4
  34. #define RGBLED_NUM 24
  35. #define RGBLIGHT_ANIMATIONS
  36. #define WS2812_PWM_DRIVER PWMD3
  37. #define WS2812_PWM_CHANNEL 1
  38. #define WS2812_DMA_STREAM STM32_DMA1_STREAM3
  39. #define WS2812_DMA_CHANNEL 3
  40. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  41. #define LOCKING_SUPPORT_ENABLE
  42. /* Locking resynchronize hack */
  43. #define LOCKING_RESYNC_ENABLE
  44. #define ENCODERS 2
  45. #define ENCODERS_PAD_A { B3,A14 }
  46. #define ENCODERS_PAD_B { B5,A15 }
  47. #define ENCODERS_CW_KEY { { 0, 0 },{ 2, 0 } }
  48. #define ENCODERS_CCW_KEY { { 6, 0 },{ 8, 0 } }
  49. #define DYNAMIC_KEYMAP_LAYER_COUNT 3
  50. /* Bootmagic Lite key configuration */
  51. #define BOOTMAGIC_LITE_ROW 0
  52. #define BOOTMAGIC_LITE_COLUMN 1