config.h 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0x112D
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER yohewi
  8. #define PRODUCT UraNuma
  9. #define DESCRIPTION Series of numa
  10. /* key matrix size */
  11. #define MATRIX_ROWS 5
  12. #define MATRIX_COLS 10
  13. /*
  14. * Keyboard Matrix Assignments
  15. *
  16. * Change this to how you wired your keyboard
  17. * COLS: AVR pins used for columns, left to right
  18. * ROWS: AVR pins used for rows, top to bottom
  19. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  20. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  21. *
  22. */
  23. #define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
  24. #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D2, D4 }
  25. #define UNUSED_PINS
  26. /* COL2ROW, ROW2COL*/
  27. #define DIODE_DIRECTION COL2ROW
  28. /*
  29. * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
  30. */
  31. #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
  32. // #define BACKLIGHT_PIN B7
  33. // #define BACKLIGHT_BREATHING
  34. // #define BACKLIGHT_LEVELS 3
  35. // #define RGB_DI_PIN E2
  36. // #ifdef RGB_DI_PIN
  37. // #define RGBLED_NUM 16
  38. // #define RGBLIGHT_HUE_STEP 8
  39. // #define RGBLIGHT_SAT_STEP 8
  40. // #define RGBLIGHT_VAL_STEP 8
  41. // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  42. // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  43. // /*== all animations enable ==*/
  44. // #define RGBLIGHT_ANIMATIONS
  45. // /*== or choose animations ==*/
  46. // #define RGBLIGHT_EFFECT_BREATHING
  47. // #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  48. // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  49. // #define RGBLIGHT_EFFECT_SNAKE
  50. // #define RGBLIGHT_EFFECT_KNIGHT
  51. // #define RGBLIGHT_EFFECT_CHRISTMAS
  52. // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  53. // #define RGBLIGHT_EFFECT_RGB_TEST
  54. // #define RGBLIGHT_EFFECT_ALTERNATING
  55. // /*== customize breathing effect ==*/
  56. // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
  57. // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
  58. // /*==== use exp() and sin() ====*/
  59. // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
  60. // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
  61. // #endif
  62. // fix iPhone and iPad power adapter issue
  63. // iOS device need lessthan 100
  64. #define USB_MAX_POWER_CONSUMPTION 100
  65. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  66. #define DEBOUNCE 5
  67. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  68. //#define MATRIX_HAS_GHOST
  69. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  70. #define LOCKING_SUPPORT_ENABLE
  71. /* Locking resynchronize hack */
  72. #define LOCKING_RESYNC_ENABLE
  73. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  74. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  75. */
  76. // #define GRAVE_ESC_CTRL_OVERRIDE
  77. /*
  78. * Force NKRO
  79. *
  80. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  81. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  82. * makefile for this to work.)
  83. *
  84. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  85. * until the next keyboard reset.
  86. *
  87. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  88. * fully operational during normal computer usage.
  89. *
  90. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  91. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  92. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  93. * power-up.
  94. *
  95. */
  96. //#define FORCE_NKRO
  97. /*
  98. * Magic Key Options
  99. *
  100. * Magic keys are hotkey commands that allow control over firmware functions of
  101. * the keyboard. They are best used in combination with the HID Listen program,
  102. * found here: https://www.pjrc.com/teensy/hid_listen.html
  103. *
  104. * The options below allow the magic key functionality to be changed. This is
  105. * useful if your keyboard/keypad is missing keys and you want magic key support.
  106. *
  107. */
  108. /* key combination for magic key command */
  109. /* defined by default; to change, uncomment and set to the combination you want */
  110. // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
  111. /* control how magic key switches layers */
  112. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  113. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  114. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  115. /* override magic key keymap */
  116. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
  117. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
  118. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
  119. //#define MAGIC_KEY_HELP H
  120. //#define MAGIC_KEY_HELP_ALT SLASH
  121. //#define MAGIC_KEY_DEBUG D
  122. //#define MAGIC_KEY_DEBUG_MATRIX X
  123. //#define MAGIC_KEY_DEBUG_KBD K
  124. //#define MAGIC_KEY_DEBUG_MOUSE M
  125. //#define MAGIC_KEY_VERSION V
  126. //#define MAGIC_KEY_STATUS S
  127. //#define MAGIC_KEY_CONSOLE C
  128. //#define MAGIC_KEY_LAYER0 0
  129. //#define MAGIC_KEY_LAYER0_ALT GRAVE
  130. //#define MAGIC_KEY_LAYER1 1
  131. //#define MAGIC_KEY_LAYER2 2
  132. //#define MAGIC_KEY_LAYER3 3
  133. //#define MAGIC_KEY_LAYER4 4
  134. //#define MAGIC_KEY_LAYER5 5
  135. //#define MAGIC_KEY_LAYER6 6
  136. //#define MAGIC_KEY_LAYER7 7
  137. //#define MAGIC_KEY_LAYER8 8
  138. //#define MAGIC_KEY_LAYER9 9
  139. //#define MAGIC_KEY_BOOTLOADER B
  140. //#define MAGIC_KEY_BOOTLOADER_ALT ESC
  141. //#define MAGIC_KEY_LOCK CAPS
  142. //#define MAGIC_KEY_EEPROM E
  143. //#define MAGIC_KEY_EEPROM_CLEAR BSPACE
  144. //#define MAGIC_KEY_NKRO N
  145. //#define MAGIC_KEY_SLEEP_LED Z
  146. /*
  147. * Feature disable options
  148. * These options are also useful to firmware size reduction.
  149. */
  150. /* disable debug print */
  151. //#define NO_DEBUG
  152. /* disable print */
  153. //#define NO_PRINT
  154. /* disable action features */
  155. //#define NO_ACTION_LAYER
  156. //#define NO_ACTION_TAPPING
  157. //#define NO_ACTION_ONESHOT
  158. //#define NO_ACTION_MACRO
  159. //#define NO_ACTION_FUNCTION
  160. /*
  161. * MIDI options
  162. */
  163. /* Prevent use of disabled MIDI features in the keymap */
  164. //#define MIDI_ENABLE_STRICT 1
  165. /* enable basic MIDI features:
  166. - MIDI notes can be sent when in Music mode is on
  167. */
  168. //#define MIDI_BASIC
  169. /* enable advanced MIDI features:
  170. - MIDI notes can be added to the keymap
  171. - Octave shift and transpose
  172. - Virtual sustain, portamento, and modulation wheel
  173. - etc.
  174. */
  175. //#define MIDI_ADVANCED
  176. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  177. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  178. /*
  179. * HD44780 LCD Display Configuration
  180. */
  181. /*
  182. #define LCD_LINES 2 //< number of visible lines of the display
  183. #define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
  184. #define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
  185. #if LCD_IO_MODE
  186. #define LCD_PORT PORTB //< port for the LCD lines
  187. #define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
  188. #define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
  189. #define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
  190. #define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
  191. #define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
  192. #define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
  193. #define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
  194. #define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
  195. #define LCD_RS_PORT LCD_PORT //< port for RS line
  196. #define LCD_RS_PIN 3 //< pin for RS line
  197. #define LCD_RW_PORT LCD_PORT //< port for RW line
  198. #define LCD_RW_PIN 2 //< pin for RW line
  199. #define LCD_E_PORT LCD_PORT //< port for Enable line
  200. #define LCD_E_PIN 1 //< pin for Enable line
  201. #endif
  202. */
  203. /* Bootmagic Lite key configuration */
  204. // #define BOOTMAGIC_LITE_ROW 0
  205. // #define BOOTMAGIC_LITE_COLUMN 0