config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* Copyright 2020 Thys de Wet
  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 0xFEED
  20. #define PRODUCT_ID 0x7812
  21. #define DEVICE_VER 0x0001
  22. #define PRODUCT Grandiceps Split
  23. /* key matrix size */
  24. #define MATRIX_ROWS 10
  25. #define MATRIX_COLS 6
  26. #define MATRIX_COL_PINS { B0, A7, A3, A5, A4, A2 }
  27. #define MATRIX_ROW_PINS { B12, A6, B13, B9, B8 }
  28. #define MATRIX_COL_PINS_RIGHT { B0, A7, A3, A5, A4, A2 }
  29. #define MATRIX_ROW_PINS_RIGHT { B12, A6, B13, B9, B8 }
  30. #define DIODE_DIRECTION COL2ROW
  31. #define SOFT_SERIAL_PIN A15
  32. #define SELECT_SOFT_SERIAL_SPEED 1
  33. #define MATRIX_IO_DELAY 5
  34. #define TAP_CODE_DELAY 10
  35. #define ENCODERS_PAD_A { B14 }
  36. #define ENCODERS_PAD_B { B15 }
  37. #define RGB_DI_PIN B1
  38. #define RGBLED_NUM 16
  39. #define RGBLED_SPLIT { 8,8 }
  40. #define RGBLIGHT_LIMIT_VAL 120
  41. #define RGBLIGHT_ANIMATIONS
  42. #define WS2812_PWM_DRIVER PWMD3
  43. #define WS2812_PWM_CHANNEL 4
  44. #define WS2812_PWM_PAL_MODE 2
  45. #define WS2812_DMA_STREAM STM32_DMA1_STREAM2
  46. #define WS2812_DMA_CHANNEL 5
  47. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  48. #define DEBOUNCE 5
  49. /* disable these deprecated features by default */
  50. #define NO_ACTION_MACRO
  51. #define NO_ACTION_FUNCTION