config.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
  2. * Copyright 2015 ZSA Technology Labs Inc (@zsa)
  3. * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. #define MUSIC_MAP
  20. #undef AUDIO_VOICES
  21. #undef AUDIO_PIN
  22. #define AUDIO_PIN A5
  23. #define AUDIO_PIN_ALT A4
  24. #define AUDIO_PIN_ALT_AS_NEGATIVE
  25. /*
  26. * Feature disable options
  27. * These options are also useful to firmware size reduction.
  28. */
  29. /* disable debug print */
  30. //#define NO_DEBUG
  31. /* disable print */
  32. //#define NO_PRINT
  33. /* disable action features */
  34. //#define NO_ACTION_LAYER
  35. //#define NO_ACTION_TAPPING
  36. //#define NO_ACTION_ONESHOT
  37. // #define WS2812_LED_N 2
  38. // #define WS2812_TIM_N 2
  39. // #define WS2812_TIM_CH 2
  40. // #define PORT_WS2812 GPIOA
  41. // #define PIN_WS2812 1
  42. // #define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM2 // DMA stream for TIMx_UP (look up in reference manual under DMA Channel selection)
  43. //#define WS2812_PWM_DMA_CHANNEL 7 // DMA channel for TIMx_UP
  44. //#define WS2812_EXTERNAL_PULLUP
  45. #define IS31FL3737_I2C_ADDRESS_1 IS31FL3737_I2C_ADDRESS_GND
  46. #define MOUSEKEY_INTERVAL 20
  47. #define MOUSEKEY_DELAY 0
  48. #define MOUSEKEY_TIME_TO_MAX 60
  49. #define MOUSEKEY_MAX_SPEED 7
  50. #define MOUSEKEY_WHEEL_DELAY 400
  51. #define MOUSEKEY_WHEEL_INTERVAL MOUSEKEY_INTERVAL
  52. #define MOUSEKEY_WHEEL_MAX_SPEED MOUSEKEY_MAX_SPEED
  53. #define MOUSEKEY_WHEEL_TIME_TO_MAX MOUSEKEY_TIME_TO_MAX