config.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* Copyright 2020 Geekboards ltd. (geekboards.ru / geekboards.de)
  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. #include "config_common.h"
  17. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0x0483
  19. #define PRODUCT_ID 0xA372
  20. #define DEVICE_VER 0x0002
  21. #define MANUFACTURER GeekBoards
  22. #define PRODUCT Macropad v2
  23. /* key matrix size */
  24. #define MATRIX_ROWS 2
  25. #define MATRIX_COLS 4
  26. #define DIRECT_PINS {{B13, B15, B3, B5}, {B12, B14, A13, B7}}
  27. #define UNUSED_PINS
  28. #define RGBLED_NUM 42
  29. #define DRIVER_LED_TOTAL 42
  30. #define RGB_DI_PIN A7
  31. // PWM RGB Underglow Defines
  32. #define WS2812_PWM_DRIVER PWMD3
  33. #define WS2812_PWM_CHANNEL 2
  34. #define WS2812_PWM_PAL_MODE 1
  35. #define WS2812_DMA_STREAM STM32_DMA1_STREAM3
  36. #define WS2812_DMA_CHANNEL 3
  37. #ifdef RGB_MATRIX_ENABLE
  38. #define RGB_MATRIX_KEYPRESSES
  39. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  40. #define DISABLE_RGB_MATRIX_ALPHAS_MODS
  41. #define DISABLE_RGB_MATRIX_BAND_SAT
  42. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  43. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  44. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  45. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  46. #define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
  47. #define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  48. #define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
  49. #define DISABLE_RGB_MATRIX_RAINBOW_BEACON
  50. #define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  51. #define DISABLE_RGB_MATRIX_RAINDROPS
  52. #define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  53. #define DISABLE_RGB_MATRIX_DIGITAL_RAIN
  54. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  55. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  56. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  57. #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_UP_DOWN
  58. #define RGB_MATRIX_STARTUP_SAT 255
  59. #define RGB_MATRIX_STARTUP_VAL 192
  60. #define RGB_MATRIX_STARTUP_SPD 30
  61. #endif //RGB_MATRIX_ENABLE
  62. #define RGB_DISABLE_WHEN_USB_SUSPENDED
  63. #define WAIT_FOR_USB
  64. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  65. #define DEBOUNCE 3
  66. /* Bootmagic Lite key configuration */
  67. #define BOOTMAGIC_LITE_ROW 0
  68. #define BOOTMAGIC_LITE_COLUMN 0