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.

332 lines
12 KiB

  1. /* Copyright 2021 3araht
  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 0xF4B5
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER 3araht
  23. #define PRODUCT bandominedoni
  24. /* key matrix size */
  25. #define MATRIX_ROWS 12
  26. #define MATRIX_COLS 7
  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. #define MATRIX_ROW_PINS { B5, B4, D7, F6, C6, D4 }
  38. #define MATRIX_COL_PINS { D1, E6, F7, B1, B3, B2, D0 }
  39. #define UNUSED_PINS
  40. #define MASTER_RIGHT
  41. #ifndef MASTER_RIGHT
  42. // SPLIT_HAND_MATRIX_GRID was initially designed to use with left hand side diode D35 mounted and not pressing K7 on the right hand side during boot. However when a USB cable is reconnected immediately, it fails. Decided to use "MASTER_RIGHT" to make it more reliable.
  43. # define SPLIT_HAND_MATRIX_GRID B5, D0
  44. #endif
  45. /* COL2ROW, ROW2COL */
  46. #define DIODE_DIRECTION COL2ROW
  47. /*
  48. * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
  49. */
  50. #define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6
  51. //#define LED_NUM_LOCK_PIN B0
  52. //#define LED_CAPS_LOCK_PIN B1
  53. //#define LED_SCROLL_LOCK_PIN B2
  54. //#define LED_COMPOSE_PIN B3
  55. //#define LED_KANA_PIN B4
  56. //#define BACKLIGHT_PIN B7
  57. //#define BACKLIGHT_LEVELS 3
  58. //#define BACKLIGHT_BREATHING
  59. #define RGB_DI_PIN D3
  60. //#ifdef RGB_DI_PIN
  61. //# define RGBLED_NUM 16
  62. //# define RGBLIGHT_HUE_STEP 8
  63. //# define RGBLIGHT_SAT_STEP 8
  64. //# define RGBLIGHT_VAL_STEP 8
  65. //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  66. //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  67. /*== all animations enable ==*/
  68. //# define RGBLIGHT_ANIMATIONS
  69. /*== or choose animations ==*/
  70. //# define RGBLIGHT_EFFECT_BREATHING
  71. //# define RGBLIGHT_EFFECT_RAINBOW_MOOD
  72. //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  73. //# define RGBLIGHT_EFFECT_SNAKE
  74. //# define RGBLIGHT_EFFECT_KNIGHT
  75. //# define RGBLIGHT_EFFECT_CHRISTMAS
  76. //# define RGBLIGHT_EFFECT_STATIC_GRADIENT
  77. //# define RGBLIGHT_EFFECT_RGB_TEST
  78. //# define RGBLIGHT_EFFECT_ALTERNATING
  79. /*== customize breathing effect ==*/
  80. /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
  81. //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
  82. /*==== use exp() and sin() ====*/
  83. //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
  84. //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
  85. //#endif
  86. #ifdef RGB_MATRIX_ENABLE
  87. /* ws2812 RGB MATRIX */
  88. # define DRIVER_LED_TOTAL 76
  89. // reacts to keypresses
  90. # define RGB_MATRIX_KEYPRESSES
  91. // for all fingers used at once.
  92. # define LED_HITS_TO_REMEMBER 10
  93. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
  94. # define RGB_MATRIX_STARTUP_SPD 127
  95. // the above brighness setting has no effect on rgb_matrix_set_color().
  96. // Use darker colors instead.
  97. /* RGB darker COLORS */
  98. # define RGB_DARKWHITE 0x33, 0x33, 0x33
  99. # define RGB_DARKRED 0x33, 0x0, 0x0
  100. # define RGB_DARKCORAL 0x33, 0x18, 0xF
  101. # define RGB_DARKORANGE 0x33, 0x19, 0x0
  102. # define RGB_DARKGOLDENROD 0x2B, 0x21, 0x6
  103. # define RGB_DARKGOLD 0x33, 0x2B, 0x0
  104. # define RGB_DARKYELLOW 0x33, 0x33, 0x0
  105. # define RGB_DARKCHARTREUSE 0x19, 0x33, 0x0
  106. # define RGB_DARKGREEN 0x0, 0x33, 0x0
  107. # define RGB_DARKSPRINGGREEN 0x0, 0x33, 0x19
  108. # define RGB_DARKTURQUOISE 0xE, 0x16, 0x15
  109. # define RGB_DARKTEAL 0x0, 0x19, 0x19
  110. # define RGB_DARKCYAN 0x0, 0x33, 0x33
  111. # define RGB_DARKAZURE 0x1E, 0x31, 0x33
  112. # define RGB_DARKBLUE 0x0, 0x0, 0x33
  113. # define RGB_DARKPURPLE 0x18, 0x0, 0x33
  114. # define RGB_DARKMAGENTA 0x33, 0x0, 0x33
  115. # define RGB_DARKPINK 0x33, 0x19, 0x26
  116. // https://docs.qmk.fm/#/feature_rgb_matrix
  117. // Enable suspend mode.
  118. # define RGB_DISABLE_WHEN_USB_SUSPENDED true
  119. // // enable below to shrink the firmware size ( -1974 bytes )
  120. // # define REDUCE_RGB_MATRIX_EFFECTS
  121. // enable below to shrink the firmware size ( -1574 bytes )
  122. // # define REDUCE_RGB_MATRIX_EFFECTS_2
  123. // # ifdef AUDIO_ENABLE
  124. # ifdef CONSOLE_ENABLE
  125. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  126. # else
  127. // #define ENABLE_RGB_MATRIX_ALPHAS_MODS
  128. // #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  129. // #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  130. // #define ENABLE_RGB_MATRIX_BREATHING
  131. // #define ENABLE_RGB_MATRIX_BAND_SAT
  132. // #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  133. // #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  134. // #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  135. // #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  136. // #define ENABLE_RGB_MATRIX_RAINDROPS
  137. // #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  138. # define ENABLE_RGB_MATRIX_HUE_BREATHING
  139. # define ENABLE_RGB_MATRIX_HUE_PENDULUM
  140. # define ENABLE_RGB_MATRIX_HUE_WAVE
  141. # define ENABLE_RGB_MATRIX_FRACTAL
  142. # define ENABLE_RGB_MATRIX_PIXEL_RAIN
  143. # if !defined(REDUCE_RGB_MATRIX_EFFECTS) && !defined(VIA_ENABLE)
  144. // # ifdef REDUCE_RGB_MATRIX_EFFECTS
  145. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  146. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  147. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  148. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  149. # define ENABLE_RGB_MATRIX_DUAL_BEACON
  150. # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  151. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  152. # endif
  153. // #define ENABLE_RGB_MATRIX_HUE_BREATHING
  154. // #define ENABLE_RGB_MATRIX_HUE_PENDULUM
  155. // #define ENABLE_RGB_MATRIX_HUE_WAVE
  156. // #define ENABLE_RGB_MATRIX_FRACTAL
  157. // #define ENABLE_RGB_MATRIX_PIXEL_RAIN
  158. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  159. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  160. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  161. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  162. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  163. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  164. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  165. # if !defined(REDUCE_RGB_MATRIX_EFFECTS_2) && !defined(VIA_ENABLE)
  166. // # ifdef REDUCE_RGB_MATRIX_EFFECTS_2
  167. # define ENABLE_RGB_MATRIX_BAND_VAL
  168. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  169. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  170. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  171. # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  172. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  173. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  174. # define ENABLE_RGB_MATRIX_MULTISPLASH
  175. # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  176. # endif
  177. // #define ENABLE_RGB_MATRIX_SPLASH
  178. // #define ENABLE_RGB_MATRIX_SOLID_SPLASH
  179. # endif // AUDIO_ENABLE
  180. // #define ENABLE_RGB_MATRIX_ALPHAS_MODS
  181. // #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  182. // #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  183. // #define ENABLE_RGB_MATRIX_BREATHING
  184. // #define ENABLE_RGB_MATRIX_BAND_SAT
  185. // #define ENABLE_RGB_MATRIX_BAND_VAL
  186. // #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  187. // #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  188. // #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  189. // #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  190. // #define ENABLE_RGB_MATRIX_CYCLE_ALL
  191. // #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  192. // #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  193. // #define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  194. // #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  195. // #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  196. // #define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  197. // #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  198. // #define ENABLE_RGB_MATRIX_DUAL_BEACON
  199. // #define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  200. // #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  201. // #define ENABLE_RGB_MATRIX_RAINDROPS
  202. // #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  203. // #define ENABLE_RGB_MATRIX_HUE_BREATHING
  204. // #define ENABLE_RGB_MATRIX_HUE_PENDULUM
  205. // #define ENABLE_RGB_MATRIX_HUE_WAVE
  206. // #define ENABLE_RGB_MATRIX_FRACTAL
  207. // #define ENABLE_RGB_MATRIX_PIXEL_RAIN
  208. // #define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  209. // #define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  210. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  211. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  212. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  213. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  214. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  215. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  216. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  217. // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  218. // #define ENABLE_RGB_MATRIX_SPLASH
  219. // #define ENABLE_RGB_MATRIX_MULTISPLASH
  220. // #define ENABLE_RGB_MATRIX_SOLID_SPLASH
  221. // #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  222. #endif // RGB_MATRIX_ENABLE
  223. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  224. #define DEBOUNCE 5
  225. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  226. //#define MATRIX_HAS_GHOST
  227. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  228. // #define LOCKING_SUPPORT_ENABLE
  229. /* Locking resynchronize hack */
  230. // #define LOCKING_RESYNC_ENABLE
  231. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  232. * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
  233. */
  234. //#define GRAVE_ESC_CTRL_OVERRIDE
  235. /*
  236. * Force NKRO
  237. *
  238. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  239. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  240. * makefile for this to work.)
  241. *
  242. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  243. * until the next keyboard reset.
  244. *
  245. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  246. * fully operational during normal computer usage.
  247. *
  248. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  249. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  250. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  251. * power-up.
  252. *
  253. */
  254. //#define FORCE_NKRO
  255. /*
  256. * Feature disable options
  257. * These options are also useful to firmware size reduction.
  258. */
  259. /* disable debug print */
  260. //#define NO_DEBUG
  261. /* disable print */
  262. //#define NO_PRINT
  263. /* disable action features */
  264. //#define NO_ACTION_LAYER
  265. /* 2021/01/22 added to shrink firmware size */
  266. // NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
  267. // #define NO_ACTION_TAPPING
  268. // NO_ACTION_ONESHOT -388 bytes
  269. #define NO_ACTION_ONESHOT
  270. /* disable these deprecated features by default */
  271. #define NO_ACTION_MACRO
  272. #define NO_ACTION_FUNCTION
  273. /* Bootmagic Lite key configuration */
  274. //#define BOOTMAGIC_LITE_ROW 0
  275. //#define BOOTMAGIC_LITE_COLUMN 0
  276. #ifdef MIDI_ENABLE
  277. # define MIDI_ADVANCED
  278. // Initial velocity value (avoid using 127 since it is used as a special number in some sound sources.)
  279. # define MIDI_INITIAL_VELOCITY 117
  280. #endif // MIDI_ENABLE
  281. /*
  282. * Encoder options
  283. */
  284. #ifdef ENCODER_ENABLE
  285. # define ENCODERS_PAD_A { C7 } // dummy
  286. # define ENCODERS_PAD_B { B7 } // dummy
  287. # define ENCODERS_PAD_A_RIGHT { F5 }
  288. # define ENCODERS_PAD_B_RIGHT { F4 }
  289. # define ENCODER_RESOLUTION 4
  290. # define TAP_CODE_DELAY 10
  291. #endif // ENCODER_ENABLE