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.

187 lines
6.2 KiB

  1. /* Copyright 2018
  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 0x0A0C
  21. #define DEVICE_VER 0x0175
  22. #define MANUFACTURER di0ib
  23. #define PRODUCT i75
  24. #define DESCRIPTION i75 15x5 ortholinear keyboard
  25. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  26. #define DEBOUNCE 5
  27. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  28. //#define MATRIX_HAS_GHOST
  29. /* number of backlight levels */
  30. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  31. #define LOCKING_SUPPORT_ENABLE
  32. /* Locking resynchronize hack */
  33. #define LOCKING_RESYNC_ENABLE
  34. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  35. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  36. */
  37. // #define GRAVE_ESC_CTRL_OVERRIDE
  38. /*
  39. * Force NKRO
  40. *
  41. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  42. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  43. * makefile for this to work.)
  44. *
  45. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  46. * until the next keyboard reset.
  47. *
  48. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  49. * fully operational during normal computer usage.
  50. *
  51. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  52. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  53. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  54. * power-up.
  55. *
  56. */
  57. //#define FORCE_NKRO
  58. /*
  59. * Magic Key Options
  60. *
  61. * Magic keys are hotkey commands that allow control over firmware functions of
  62. * the keyboard. They are best used in combination with the HID Listen program,
  63. * found here: https://www.pjrc.com/teensy/hid_listen.html
  64. *
  65. * The options below allow the magic key functionality to be changed. This is
  66. * useful if your keyboard/keypad is missing keys and you want magic key support.
  67. *
  68. */
  69. /* control how magic key switches layers */
  70. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  71. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  72. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  73. /* override magic key keymap */
  74. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
  75. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
  76. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
  77. //#define MAGIC_KEY_HELP1 H
  78. //#define MAGIC_KEY_HELP2 SLASH
  79. //#define MAGIC_KEY_DEBUG D
  80. //#define MAGIC_KEY_DEBUG_MATRIX X
  81. //#define MAGIC_KEY_DEBUG_KBD K
  82. //#define MAGIC_KEY_DEBUG_MOUSE M
  83. //#define MAGIC_KEY_VERSION V
  84. //#define MAGIC_KEY_STATUS S
  85. //#define MAGIC_KEY_CONSOLE C
  86. //#define MAGIC_KEY_LAYER0_ALT1 ESC
  87. //#define MAGIC_KEY_LAYER0_ALT2 GRAVE
  88. //#define MAGIC_KEY_LAYER0 0
  89. //#define MAGIC_KEY_LAYER1 1
  90. //#define MAGIC_KEY_LAYER2 2
  91. //#define MAGIC_KEY_LAYER3 3
  92. //#define MAGIC_KEY_LAYER4 4
  93. //#define MAGIC_KEY_LAYER5 5
  94. //#define MAGIC_KEY_LAYER6 6
  95. //#define MAGIC_KEY_LAYER7 7
  96. //#define MAGIC_KEY_LAYER8 8
  97. //#define MAGIC_KEY_LAYER9 9
  98. //#define MAGIC_KEY_BOOTLOADER PAUSE
  99. //#define MAGIC_KEY_LOCK CAPS
  100. //#define MAGIC_KEY_EEPROM E
  101. //#define MAGIC_KEY_NKRO N
  102. //#define MAGIC_KEY_SLEEP_LED Z
  103. /*
  104. * Feature disable options
  105. * These options are also useful to firmware size reduction.
  106. */
  107. /* disable debug print */
  108. //#define NO_DEBUG
  109. /* disable print */
  110. //#define NO_PRINT
  111. /* disable action features */
  112. //#define NO_ACTION_LAYER
  113. //#define NO_ACTION_TAPPING
  114. //#define NO_ACTION_ONESHOT
  115. //#define NO_ACTION_MACRO
  116. //#define NO_ACTION_FUNCTION
  117. /*
  118. * MIDI options
  119. */
  120. /* Prevent use of disabled MIDI features in the keymap */
  121. //#define MIDI_ENABLE_STRICT 1
  122. /* enable basic MIDI features:
  123. - MIDI notes can be sent when in Music mode is on
  124. */
  125. //#define MIDI_BASIC
  126. /* enable advanced MIDI features:
  127. - MIDI notes can be added to the keymap
  128. - Octave shift and transpose
  129. - Virtual sustain, portamento, and modulation wheel
  130. - etc.
  131. */
  132. //#define MIDI_ADVANCED
  133. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  134. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  135. /*
  136. * HD44780 LCD Display Configuration
  137. */
  138. /*
  139. #define LCD_LINES 2 //< number of visible lines of the display
  140. #define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
  141. #define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
  142. #if LCD_IO_MODE
  143. #define LCD_PORT PORTB //< port for the LCD lines
  144. #define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
  145. #define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
  146. #define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
  147. #define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
  148. #define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
  149. #define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
  150. #define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
  151. #define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
  152. #define LCD_RS_PORT LCD_PORT //< port for RS line
  153. #define LCD_RS_PIN 3 //< pin for RS line
  154. #define LCD_RW_PORT LCD_PORT //< port for RW line
  155. #define LCD_RW_PIN 2 //< pin for RW line
  156. #define LCD_E_PORT LCD_PORT //< port for Enable line
  157. #define LCD_E_PIN 1 //< pin for Enable line
  158. #endif
  159. */
  160. /* Bootmagic Lite key configuration */
  161. // #define BOOTMAGIC_LITE_ROW 0
  162. // #define BOOTMAGIC_LITE_COLUMN 0