config.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. //#define NO_ACTION_MACRO
  58. //#define NO_ACTION_FUNCTION
  59. /*
  60. * MIDI options
  61. */
  62. /* enable basic MIDI features:
  63. - MIDI notes can be sent when in Music mode is on
  64. */
  65. //#define MIDI_BASIC
  66. /* enable advanced MIDI features:
  67. - MIDI notes can be added to the keymap
  68. - Octave shift and transpose
  69. - Virtual sustain, portamento, and modulation wheel
  70. - etc.
  71. */
  72. //#define MIDI_ADVANCED
  73. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  74. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  75. /* Backlight configuration
  76. */
  77. #define BACKLIGHT_LEVELS 10
  78. // This is a 7-bit address, that gets left-shifted and bit 0
  79. // set to 0 for write, 1 for read (as per I2C protocol)
  80. // The address will vary depending on your wiring:
  81. // 0b1110100 AD <-> GND
  82. // 0b1110111 AD <-> VCC
  83. // 0b1110101 AD <-> SCL
  84. // 0b1110110 AD <-> SDA
  85. #define LED_DRIVER_ADDR_1 0b1110100
  86. #define I2C1_SCL 8
  87. #define I2C1_SDA 9
  88. #define LED_DRIVER_COUNT 1
  89. #define DRIVER_LED_TOTAL 71
  90. #define AUDIO_PIN A5
  91. #define AUDIO_PIN_ALT A4
  92. #define AUDIO_PIN_ALT_AS_NEGATIVE