config.h 2.0 KB

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