You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
4.3 KiB

6 years ago
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #ifndef CONFIG_H
  15. #define CONFIG_H
  16. #include "config_common.h"
  17. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0xFEED
  19. #define PRODUCT_ID 0x6160
  20. #define MANUFACTURER OLKB
  21. #define PRODUCT Muon Light
  22. #define DESCRIPTION A compact ortholinear keyboard
  23. #define DEVICE_VER 0x0001
  24. /* key matrix size */
  25. #define MATRIX_ROWS 4
  26. #define MATRIX_COLS 6
  27. /*
  28. * Keyboard Matrix Assignments
  29. *
  30. * Change this to how you wired your keyboard
  31. * COLS: AVR pins used for columns, left to right
  32. * ROWS: AVR pins used for rows, top to bottom
  33. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  34. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  35. *
  36. */
  37. #undef MATRIX_ROW_PINS
  38. #undef MATRIX_COL_PINS
  39. #define MATRIX_ROW_PINS { B5, B10, A9, A8 }
  40. #define MATRIX_COL_PINS { A10, B2, A15, A0, A1, A2 }
  41. /* COL2ROW or ROW2COL */
  42. #define DIODE_DIRECTION COL2ROW
  43. #define MUSIC_MAP
  44. #define NUMBER_OF_ENCODERS 1
  45. #define ENCODERS_PAD_A { B12 }
  46. #define ENCODERS_PAD_B { B13 }
  47. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  48. #define DEBOUNCE 6
  49. /* Prevent modifiers from being stuck on after layer changes. */
  50. #define PREVENT_STUCK_MODIFIERS
  51. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  52. //#define LOCKING_SUPPORT_ENABLE
  53. /* Locking resynchronize hack */
  54. //#define LOCKING_RESYNC_ENABLE
  55. /*
  56. * Force NKRO
  57. *
  58. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  59. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  60. * makefile for this to work.)
  61. *
  62. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  63. * until the next keyboard reset.
  64. *
  65. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  66. * fully operational during normal computer usage.
  67. *
  68. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  69. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  70. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  71. * power-up.
  72. *
  73. */
  74. //#define FORCE_NKRO
  75. /* key combination for magic key command */
  76. #define IS_COMMAND() ( \
  77. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  78. )
  79. /*
  80. * Feature disable options
  81. * These options are also useful to firmware size reduction.
  82. */
  83. /* disable debug print */
  84. //#define NO_DEBUG
  85. /* disable print */
  86. //#define NO_PRINT
  87. /* disable action features */
  88. //#define NO_ACTION_LAYER
  89. //#define NO_ACTION_TAPPING
  90. //#define NO_ACTION_ONESHOT
  91. //#define NO_ACTION_MACRO
  92. //#define NO_ACTION_FUNCTION
  93. /*
  94. * MIDI options
  95. */
  96. /* Prevent use of disabled MIDI features in the keymap */
  97. //#define MIDI_ENABLE_STRICT 1
  98. /* enable basic MIDI features:
  99. - MIDI notes can be sent when in Music mode is on
  100. */
  101. //#define MIDI_BASIC
  102. /* enable advanced MIDI features:
  103. - MIDI notes can be added to the keymap
  104. - Octave shift and transpose
  105. - Virtual sustain, portamento, and modulation wheel
  106. - etc.
  107. */
  108. //#define MIDI_ADVANCED
  109. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  110. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  111. // This is a 7-bit address, that gets left-shifted and bit 0
  112. // set to 0 for write, 1 for read (as per I2C protocol)
  113. // The address will vary depending on your wiring:
  114. // 0b1110100 AD <-> GND
  115. // 0b1110111 AD <-> VCC
  116. // 0b1110101 AD <-> SCL
  117. // 0b1110110 AD <-> SDA
  118. #define DRIVER_ADDR_1 0b1110100
  119. #define DRIVER_ADDR_2 0b1110110
  120. #define DRIVER_COUNT 2
  121. #define DRIVER_1_LED_TOTAL 25
  122. #define DRIVER_2_LED_TOTAL 24
  123. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL
  124. #define NO_USB_STARTUP_CHECK
  125. #endif