config.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /*
  2. * Copyright 2017 skully <skullydazed@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. #include "config_common.h"
  19. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  20. // #define DEBOUNCE 6
  21. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  22. //#define LOCKING_SUPPORT_ENABLE
  23. /* Locking resynchronize hack */
  24. //#define LOCKING_RESYNC_ENABLE
  25. /*
  26. * Force NKRO
  27. *
  28. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  29. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  30. * makefile for this to work.)
  31. *
  32. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  33. * until the next keyboard reset.
  34. *
  35. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  36. * fully operational during normal computer usage.
  37. *
  38. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  39. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  40. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  41. * power-up.
  42. *
  43. */
  44. //#define FORCE_NKRO
  45. /*
  46. * Feature disable options
  47. * These options are also useful to firmware size reduction.
  48. */
  49. /* disable debug print */
  50. //#define NO_DEBUG
  51. /* disable print */
  52. //#define NO_PRINT
  53. /* disable action features */
  54. //#define NO_ACTION_LAYER
  55. //#define NO_ACTION_TAPPING
  56. //#define NO_ACTION_ONESHOT
  57. /* Backlight configuration
  58. */
  59. #define BACKLIGHT_LEVELS 10
  60. // This is a 7-bit address, that gets left-shifted and bit 0
  61. // set to 0 for write, 1 for read (as per I2C protocol)
  62. // The address will vary depending on your wiring:
  63. // 0b1110100 AD <-> GND
  64. // 0b1110111 AD <-> VCC
  65. // 0b1110101 AD <-> SCL
  66. // 0b1110110 AD <-> SDA
  67. #define LED_DRIVER_ADDR_1 0b1110100
  68. #define I2C1_SCL_PIN B8
  69. #define I2C1_SDA_PIN B9
  70. #define LED_DRIVER_COUNT 1
  71. #define DRIVER_LED_TOTAL 71
  72. // LED Matrix Animation modes. Explicitly enabled
  73. // For full list of effects, see:
  74. // https://docs.qmk.fm/#/feature_led_matrix?id=led-matrix-effects
  75. #define ENABLE_LED_MATRIX_ALPHAS_MODS
  76. #define ENABLE_LED_MATRIX_BREATHING
  77. #define ENABLE_LED_MATRIX_BAND
  78. #define ENABLE_LED_MATRIX_BAND_PINWHEEL
  79. #define ENABLE_LED_MATRIX_BAND_SPIRAL
  80. #define ENABLE_LED_MATRIX_CYCLE_LEFT_RIGHT
  81. #define ENABLE_LED_MATRIX_CYCLE_UP_DOWN
  82. #define ENABLE_LED_MATRIX_CYCLE_OUT_IN
  83. #define ENABLE_LED_MATRIX_DUAL_BEACON
  84. #if defined(LED_MATRIX_KEYREACTIVE_ENABLED)
  85. # define ENABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE
  86. # define ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE
  87. # define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE
  88. # define ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS
  89. # define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS
  90. # define ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS
  91. # define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS
  92. # define ENABLE_LED_MATRIX_SPLASH
  93. # define ENABLE_LED_MATRIX_MULTISPLASH
  94. #endif
  95. #define ENABLE_LED_MATRIX_WAVE_LEFT_RIGHT
  96. #define ENABLE_LED_MATRIX_WAVE_UP_DOWN
  97. #define AUDIO_PIN A5
  98. #define AUDIO_PIN_ALT A4
  99. #define AUDIO_PIN_ALT_AS_NEGATIVE