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.

163 lines
5.5 KiB

  1. /* Copyright 2021 jurassic73
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #pragma once
  14. #include "config_common.h"
  15. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0xFEED
  17. #define PRODUCT_ID 0x0000
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER jurassic73
  20. #define PRODUCT split89
  21. /*
  22. * Keyboard Matrix Assignments
  23. *
  24. * Change this to how you wired your keyboard
  25. * COLS: AVR pins used for columns, left to right
  26. * ROWS: AVR pins used for rows, top to bottom
  27. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  28. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  29. *
  30. */
  31. /* key matrix size
  32. ROWS = total count of rows for both sides - this is broken out accordingly in split.h
  33. COLS = number of cols per side which curently needs to be equal so there are blank columns for the left side in the split89.h file
  34. */
  35. #define MATRIX_ROWS 12
  36. #define MATRIX_COLS 10
  37. /* Left side matrix */
  38. #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 }
  39. #define MATRIX_COL_PINS { F5, F4, B5, B4, E6, D7, C6, D4, D2, D3 }
  40. /* Right side matrix */
  41. #define MATRIX_ROW_PINS_RIGHT { F6, F7, B1, B3, B2, B6 }
  42. #define MATRIX_COL_PINS_RIGHT { F5, F4, B5, B4, E6, D7, C6, D4, D2, D3 }
  43. /* this will be tied to high (VCC with a 2k to 10k resistor) on the left keyboard half and tied to low (GND using a wire jumper only) on the right keyboard half. This allows a user to plug in a USB cable to either side and function correctly with or without a TRS/TRRS cable with a single hex file. */
  44. #define SPLIT_HAND_PIN D1
  45. /* COL2ROW, ROW2COL */
  46. #define DIODE_DIRECTION COL2ROW
  47. /* handedness */
  48. /*
  49. * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
  50. */
  51. #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
  52. #define USE_SERIAL
  53. //#define LED_NUM_LOCK_PIN B0
  54. //#define LED_CAPS_LOCK_PIN B1
  55. //#define LED_SCROLL_LOCK_PIN B2
  56. //#define LED_COMPOSE_PIN B3
  57. //#define LED_KANA_PIN B4
  58. //#define BACKLIGHT_PIN B7
  59. //#define BACKLIGHT_LEVELS 3
  60. //#define BACKLIGHT_BREATHING
  61. //#define RGB_DI_PIN E2
  62. //#ifdef RGB_DI_PIN
  63. //# define RGBLED_NUM 16
  64. //# define RGBLIGHT_HUE_STEP 8
  65. //# define RGBLIGHT_SAT_STEP 8
  66. //# define RGBLIGHT_VAL_STEP 8
  67. //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  68. //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  69. /*== all animations enable ==*/
  70. //# define RGBLIGHT_ANIMATIONS
  71. /*== or choose animations ==*/
  72. //# define RGBLIGHT_EFFECT_BREATHING
  73. //# define RGBLIGHT_EFFECT_RAINBOW_MOOD
  74. //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  75. //# define RGBLIGHT_EFFECT_SNAKE
  76. //# define RGBLIGHT_EFFECT_KNIGHT
  77. //# define RGBLIGHT_EFFECT_CHRISTMAS
  78. //# define RGBLIGHT_EFFECT_STATIC_GRADIENT
  79. //# define RGBLIGHT_EFFECT_RGB_TEST
  80. //# define RGBLIGHT_EFFECT_ALTERNATING
  81. /*== customize breathing effect ==*/
  82. /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
  83. //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
  84. /*==== use exp() and sin() ====*/
  85. //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
  86. //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
  87. //#endif
  88. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  89. #define DEBOUNCE 5
  90. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  91. //#define MATRIX_HAS_GHOST
  92. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  93. #define LOCKING_SUPPORT_ENABLE
  94. /* Locking resynchronize hack */
  95. #define LOCKING_RESYNC_ENABLE
  96. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  97. * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
  98. */
  99. //#define GRAVE_ESC_CTRL_OVERRIDE
  100. /*
  101. * Force NKRO
  102. *
  103. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  104. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  105. * makefile for this to work.)
  106. *
  107. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  108. * until the next keyboard reset.
  109. *
  110. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  111. * fully operational during normal computer usage.
  112. *
  113. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  114. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  115. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  116. * power-up.
  117. *
  118. */
  119. //#define FORCE_NKRO
  120. /*
  121. * Feature disable options
  122. * These options are also useful to firmware size reduction.
  123. */
  124. /* disable debug print */
  125. //#define NO_DEBUG
  126. /* disable print */
  127. //#define NO_PRINT
  128. /* disable action features */
  129. //#define NO_ACTION_LAYER
  130. //#define NO_ACTION_TAPPING
  131. //#define NO_ACTION_ONESHOT
  132. /* disable these deprecated features by default */
  133. #define NO_ACTION_MACRO
  134. #define NO_ACTION_FUNCTION
  135. /* Bootmagic Lite key configuration */
  136. //#define BOOTMAGIC_LITE_ROW 0
  137. //#define BOOTMAGIC_LITE_COLUMN 0