config.h 3.5 KB

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