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.

133 lines
4.0 KiB

  1. /* Copyright 2019 Jason Williams (Wilba)
  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 0x6582 // wilba.tech
  20. #define PRODUCT_ID 0x075B // 75-B
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER wilba.tech
  23. #define PRODUCT wilba.tech WT75-B
  24. /* key matrix size */
  25. #define MATRIX_ROWS 6
  26. #define MATRIX_COLS 16
  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 { F1, F0, E6, F4, F6, F7 }
  38. #define MATRIX_COL_PINS { F5, D5, B1, B7, B3, D3, D2, C7, C6, B6, B5, B4, D7, D6, B2, D4 }
  39. #define UNUSED_PINS
  40. /* COL2ROW, ROW2COL */
  41. #define DIODE_DIRECTION ROW2COL
  42. // #define BACKLIGHT_PIN B7
  43. // #define BACKLIGHT_BREATHING
  44. // #define BACKLIGHT_LEVELS 3
  45. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  46. #define DEBOUNCE 5
  47. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  48. //#define MATRIX_HAS_GHOST
  49. /* number of backlight levels */
  50. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  51. #define LOCKING_SUPPORT_ENABLE
  52. /* Locking resynchronize hack */
  53. #define LOCKING_RESYNC_ENABLE
  54. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  55. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  56. */
  57. // #define GRAVE_ESC_CTRL_OVERRIDE
  58. /*
  59. * Force NKRO
  60. *
  61. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  62. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  63. * makefile for this to work.)
  64. *
  65. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  66. * until the next keyboard reset.
  67. *
  68. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  69. * fully operational during normal computer usage.
  70. *
  71. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  72. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  73. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  74. * power-up.
  75. *
  76. */
  77. //#define FORCE_NKRO
  78. /*
  79. * Feature disable options
  80. * These options are also useful to firmware size reduction.
  81. */
  82. /* disable debug print */
  83. //#define NO_DEBUG
  84. /* disable print */
  85. //#define NO_PRINT
  86. /* disable action features */
  87. //#define NO_ACTION_LAYER
  88. //#define NO_ACTION_TAPPING
  89. //#define NO_ACTION_ONESHOT
  90. //#define NO_ACTION_MACRO
  91. //#define NO_ACTION_FUNCTION
  92. // enable the mono backlight
  93. #define MONO_BACKLIGHT_ENABLED 1
  94. // disable backlight when USB suspended (PC sleep/hibernate/shutdown)
  95. #define MONO_BACKLIGHT_DISABLE_WHEN_USB_SUSPENDED 0
  96. // disable backlight after timeout in minutes, 0 = no timeout
  97. #define MONO_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0
  98. // the default brightness
  99. #define MONO_BACKLIGHT_BRIGHTNESS 255
  100. // the default effect
  101. #define MONO_BACKLIGHT_EFFECT 1
  102. // the default effect speed (0-3)
  103. #define MONO_BACKLIGHT_EFFECT_SPEED 0
  104. // Backlight config starts after VIA's EEPROM usage,
  105. // dynamic keymaps start after this.
  106. #define VIA_EEPROM_CUSTOM_CONFIG_SIZE 7
  107. // VIA lighting is handled by the keyboard-level code
  108. #define VIA_CUSTOM_LIGHTING_ENABLE