config.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /* Copyright 2018 Jack Humbert
  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. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0xFEED
  20. #define PRODUCT_ID 0x6060
  21. #define DEVICE_VER 0x0006
  22. #define MANUFACTURER QMK
  23. #define PRODUCT Proton C
  24. #define DESCRIPTION A compact ortholinear keyboard
  25. /* key matrix size */
  26. #define MATRIX_ROWS 1
  27. #define MATRIX_COLS 1
  28. #define MATRIX_ROW_PINS { B9 }
  29. #define MATRIX_COL_PINS { B0 }
  30. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  31. #define DEBOUNCE 6
  32. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  33. //#define LOCKING_SUPPORT_ENABLE
  34. /* Locking resynchronize hack */
  35. //#define LOCKING_RESYNC_ENABLE
  36. /*
  37. * Force NKRO
  38. *
  39. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  40. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  41. * makefile for this to work.)
  42. *
  43. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  44. * until the next keyboard reset.
  45. *
  46. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  47. * fully operational during normal computer usage.
  48. *
  49. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  50. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  51. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  52. * power-up.
  53. *
  54. */
  55. //#define FORCE_NKRO
  56. /*
  57. * Feature disable options
  58. * These options are also useful to firmware size reduction.
  59. */
  60. /* disable debug print */
  61. //#define NO_DEBUG
  62. /* disable print */
  63. //#define NO_PRINT
  64. /* disable action features */
  65. //#define NO_ACTION_LAYER
  66. //#define NO_ACTION_TAPPING
  67. //#define NO_ACTION_ONESHOT
  68. //#define NO_ACTION_MACRO
  69. //#define NO_ACTION_FUNCTION
  70. /*
  71. * MIDI options
  72. */
  73. /* Prevent use of disabled MIDI features in the keymap */
  74. //#define MIDI_ENABLE_STRICT 1
  75. /* enable basic MIDI features:
  76. - MIDI notes can be sent when in Music mode is on
  77. */
  78. //#define MIDI_BASIC
  79. /* enable advanced MIDI features:
  80. - MIDI notes can be added to the keymap
  81. - Octave shift and transpose
  82. - Virtual sustain, portamento, and modulation wheel
  83. - etc.
  84. */
  85. //#define MIDI_ADVANCED
  86. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  87. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  88. // #define WS2812_LED_N 2
  89. // #define RGBLED_NUM WS2812_LED_N
  90. // #define WS2812_TIM_N 2
  91. // #define WS2812_TIM_CH 2
  92. // #define PORT_WS2812 GPIOA
  93. // #define PIN_WS2812 1
  94. // #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA stream for TIMx_UP (look up in reference manual under DMA Channel selection)
  95. //#define WS2812_DMA_CHANNEL 7 // DMA channel for TIMx_UP
  96. //#define WS2812_EXTERNAL_PULLUP