config.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 Jack Humbert
  4. Copyright 2020 James Smith <bronzegears@gmail.com> @klackygears
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  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 0x4A53
  20. #define PRODUCT_ID 0x0001
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER klackygears
  23. #define PRODUCT Brain
  24. #define DESCRIPTION A split ergonomic keyboard with sculpted shell
  25. #define SPLIT_USB_DETECT
  26. /* key matrix size */
  27. // Rows are doubled-up
  28. #define MATRIX_ROWS 10
  29. #define MATRIX_COLS 7
  30. // wiring of each half
  31. #define MATRIX_COL_PINS \
  32. { D1, D4, C6, D7, E6, B4, B5 }
  33. #define MATRIX_ROW_PINS \
  34. { F4, F5, F6, F7, B1 }
  35. #define MATRIX_COL_PINS_RIGHT \
  36. { B5, B4, E6, D7, C6, D4, D1 }
  37. #define DIODE_DIRECTION COL2ROW
  38. /* mouse config */
  39. #define MOUSEKEY_INTERVAL 20
  40. #define MOUSEKEY_DELAY 0
  41. #define MOUSEKEY_TIME_TO_MAX 60
  42. #define MOUSEKEY_MAX_SPEED 7
  43. #define MOUSEKEY_WHEEL_DELAY 0
  44. /* Set 0 if debouncing isn't needed */
  45. /* serial.c configuration for split keyboard */
  46. #define SOFT_SERIAL_PIN D0
  47. #define EE_HANDS
  48. //#define SPLIT_HAND_PIN B7
  49. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  50. #define LOCKING_SUPPORT_ENABLE
  51. /* Locking resynchronize hack */
  52. #define LOCKING_RESYNC_ENABLE
  53. /* Enables This makes it easier for fast typists to use dual-function keys */
  54. #define PERMISSIVE_HOLD
  55. /* ws2812 RGB LED */
  56. #define RGB_DI_PIN D3
  57. #define RGBLED_NUM 28 // Number of LEDs
  58. #define RGBLIGHT_LIMIT_VAL 120
  59. #define RGBLIGHT_SPLIT
  60. /*
  61. * Feature disable options
  62. * These options are also useful to firmware size reduction.
  63. */
  64. /* disable debug print */
  65. // #define NO_DEBUG
  66. /* disable print */
  67. // #define NO_PRINT
  68. /* disable action features */
  69. //#define NO_ACTION_LAYER
  70. //#define NO_ACTION_TAPPING
  71. //#define NO_ACTION_ONESHOT
  72. //#define NO_ACTION_MACRO
  73. //#define NO_ACTION_FUNCTION
  74. //#define PREVENT_STUCK_MODIFIERS
  75. //#define TAPPING_TERM 150
  76. //#define IGNORE_MOD_TAP_INTERRUPT
  77. //#define TAPPING_FORCE_HOLD
  78. #define BOOTMAGIC_LITE_ROW 0
  79. #define BOOTMAGIC_LITE_COLUMN 6
  80. #define BOOTMAGIC_LITE_ROW_RIGHT 5
  81. #define BOOTMAGIC_LITE_COLUMN_RIGHT 0