config.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (C) 2019-2020 Maxr1998 <max.rumpf1998@gmail.com>
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x6060
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER Maxr1998
  24. #define PRODUCT Pulse 4k
  25. /* Key matrix size */
  26. #define MATRIX_ROWS 2
  27. #define MATRIX_COLS 3
  28. /* Matrix pins */
  29. #define MATRIX_ROW_PINS { B4, E6 }
  30. #define MATRIX_COL_PINS { B7, B3, F0 }
  31. #define UNUSED_PINS
  32. /* COL2ROW or ROW2COL */
  33. #define DIODE_DIRECTION COL2ROW
  34. /* Set 0 if debouncing isn't needed */
  35. #define DEBOUNCE 5
  36. /* Rotary encoders */
  37. #define ENCODERS_PAD_A { D2, F6 }
  38. #define ENCODERS_PAD_B { D3, F5 }
  39. #define ENCODER_RESOLUTION 4
  40. /* Combo setup */
  41. #define COMBO_COUNT 1
  42. #define COMBO_TERM 150
  43. /* RGB LED Setup */
  44. #define RGB_DI_PIN F7 // pin the DI on the WS2812B is hooked-up to
  45. #define RGBLIGHT_ANIMATIONS // run RGB animations
  46. #define RGBLED_NUM 2 // number of LEDs
  47. /*
  48. * Feature disable options
  49. * These options are also useful to firmware size reduction.
  50. */
  51. /* disable debug print */
  52. //#define NO_DEBUG
  53. /* disable print */
  54. //#define NO_PRINT
  55. /* disable action features */
  56. //#define NO_ACTION_LAYER
  57. //#define NO_ACTION_TAPPING
  58. //#define NO_ACTION_ONESHOT
  59. //#define NO_ACTION_MACRO
  60. //#define NO_ACTION_FUNCTION