config.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * Copyright 2018 Jack Humbert <jack.humb@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. #undef MATRIX_ROWS
  19. #undef MATRIX_COLS
  20. /* key matrix size */
  21. #define MATRIX_ROWS 10
  22. #define MATRIX_COLS 6
  23. #undef MATRIX_ROW_PINS
  24. #undef MATRIX_COL_PINS
  25. #define MATRIX_ROW_PINS { A10, A9, A8, B15, C13, C14, C15, A2, A3, A6 }
  26. #define MATRIX_COL_PINS { B11, B10, B2, B1, A7, B0 }
  27. #define ENCODERS_PAD_A { B12 }
  28. #define ENCODERS_PAD_B { B13 }
  29. #define DIP_SWITCH_PINS { B14, A15, A0, B9 }
  30. #define MUSIC_MAP
  31. #undef AUDIO_VOICES
  32. #undef AUDIO_PIN
  33. #define AUDIO_PIN A5
  34. #define AUDIO_PIN_ALT A4
  35. #define AUDIO_PIN_ALT_AS_NEGATIVE
  36. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  37. // #define DEBOUNCE 6
  38. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  39. //#define LOCKING_SUPPORT_ENABLE
  40. /* Locking resynchronize hack */
  41. //#define LOCKING_RESYNC_ENABLE
  42. /*
  43. * Force NKRO
  44. *
  45. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  46. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  47. * makefile for this to work.)
  48. *
  49. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  50. * until the next keyboard reset.
  51. *
  52. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  53. * fully operational during normal computer usage.
  54. *
  55. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  56. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  57. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  58. * power-up.
  59. *
  60. */
  61. //#define FORCE_NKRO
  62. /*
  63. * Feature disable options
  64. * These options are also useful to firmware size reduction.
  65. */
  66. /* disable debug print */
  67. //#define NO_DEBUG
  68. /* disable print */
  69. //#define NO_PRINT
  70. /* disable action features */
  71. //#define NO_ACTION_LAYER
  72. //#define NO_ACTION_TAPPING
  73. //#define NO_ACTION_ONESHOT
  74. /*
  75. * WS2812 Underglow Matrix options
  76. */
  77. #define RGB_DI_PIN A1
  78. #define RGBLED_NUM 9
  79. #define RGBLIGHT_ANIMATIONS
  80. // RGB Matrix support
  81. #define DRIVER_LED_TOTAL RGBLED_NUM
  82. #define WS2812_PWM_DRIVER PWMD2
  83. #define WS2812_PWM_CHANNEL 2
  84. #define WS2812_PWM_PAL_MODE 1
  85. #define WS2812_DMA_STREAM STM32_DMA1_STREAM2
  86. #define WS2812_DMA_CHANNEL 2