config.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 8
  22. #define MATRIX_COLS 6
  23. /*
  24. * Keyboard Matrix Assignments
  25. *
  26. * Change this to how you wired your keyboard
  27. * COLS: AVR pins used for columns, left to right
  28. * ROWS: AVR pins used for rows, top to bottom
  29. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  30. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  31. *
  32. */
  33. /* Note: These are not used for arm boards. They're here purely as documentation. */
  34. #undef MATRIX_ROW_PINS
  35. #undef MATRIX_COL_PINS
  36. #define MATRIX_ROW_PINS { A10, A9, A8, B15, C13, C14, C15, A2 }
  37. #define MATRIX_COL_PINS { B11, B10, B2, B1, A7, B0 }
  38. #define ENCODERS_PAD_A { B12 }
  39. #define ENCODERS_PAD_B { B13 }
  40. #define DIP_SWITCH_PINS { B14, A15, A0, B9 }
  41. #define MUSIC_MAP
  42. #undef AUDIO_VOICES
  43. #undef AUDIO_PIN
  44. #define AUDIO_PIN A5
  45. #define AUDIO_PIN_ALT A4
  46. #define AUDIO_PIN_ALT_AS_NEGATIVE
  47. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  48. // #define DEBOUNCE 6
  49. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  50. //#define LOCKING_SUPPORT_ENABLE
  51. /* Locking resynchronize hack */
  52. //#define LOCKING_RESYNC_ENABLE
  53. /*
  54. * Force NKRO
  55. *
  56. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  57. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  58. * makefile for this to work.)
  59. *
  60. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  61. * until the next keyboard reset.
  62. *
  63. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  64. * fully operational during normal computer usage.
  65. *
  66. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  67. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  68. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  69. * power-up.
  70. *
  71. */
  72. //#define FORCE_NKRO
  73. /*
  74. * Feature disable options
  75. * These options are also useful to firmware size reduction.
  76. */
  77. /* disable debug print */
  78. //#define NO_DEBUG
  79. /* disable print */
  80. //#define NO_PRINT
  81. /* disable action features */
  82. //#define NO_ACTION_LAYER
  83. //#define NO_ACTION_TAPPING
  84. //#define NO_ACTION_ONESHOT
  85. /*
  86. * WS2812 Underglow Matrix options
  87. */
  88. #define RGB_DI_PIN A1
  89. #define RGBLED_NUM 9
  90. #define RGB_MATRIX_LED_COUNT RGBLED_NUM
  91. #define WS2812_PWM_DRIVER PWMD2
  92. #define WS2812_PWM_CHANNEL 2
  93. #define WS2812_PWM_PAL_MODE 1
  94. #define WS2812_DMA_STREAM STM32_DMA1_STREAM2
  95. #define WS2812_DMA_CHANNEL 2
  96. #define RGB_DISABLE_WHEN_USB_SUSPENDED