config.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 0x7811
  21. #define DEVICE_VER 0x0002
  22. #define MANUFACTURER TKW
  23. #define PRODUCT Stoutgat v2 65%
  24. /* key matrix size */
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 15
  27. #define MATRIX_COL_PINS { B0, A7, A6, A5, A4, A3, A1, A0, C15, C14, C13, A15, B3, B4, B5}
  28. #define MATRIX_ROW_PINS { B6, A2, B7, B9, B8 }
  29. /* COL2ROW, ROW2COL*/
  30. #define DIODE_DIRECTION COL2ROW
  31. #define MATRIX_IO_DELAY 5
  32. #define TAP_CODE_DELAY 10
  33. #define ENCODERS_PAD_A { B14, B12}
  34. #define ENCODERS_PAD_B { B15, B13 }
  35. #define RGB_DI_PIN B1
  36. #define RGBLED_NUM 13
  37. #define RGBLIGHT_LIMIT_VAL 120
  38. #define RGBLIGHT_ANIMATIONS
  39. #define WS2812_PWM_DRIVER PWMD3
  40. #define WS2812_PWM_CHANNEL 4
  41. #define WS2812_PWM_PAL_MODE 2
  42. #define WS2812_DMA_STREAM STM32_DMA1_STREAM2
  43. #define WS2812_DMA_CHANNEL 5
  44. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  45. #define DEBOUNCE 5
  46. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  47. #define LOCKING_SUPPORT_ENABLE
  48. /* Locking resynchronize hack */
  49. #define LOCKING_RESYNC_ENABLE
  50. /* disable these deprecated features by default */
  51. #define NO_ACTION_MACRO
  52. #define NO_ACTION_FUNCTION
  53. /* Bootmagic Lite key configuration */
  54. #define BOOTMAGIC_LITE_ROW 0
  55. #define BOOTMAGIC_LITE_COLUMN 0