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.

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