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.

95 lines
2.7 KiB

  1. /*
  2. Copyright 2020 bt66tech
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0x4254
  17. #define PRODUCT_ID 0x7070
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER bt66tech
  20. #define PRODUCT bt66tech 60%
  21. /* key matrix size */
  22. #define MATRIX_ROWS 5
  23. #define MATRIX_COLS 14
  24. #define MATRIX_COL_PINS { B9, B8, B7, B6, B5, B4, B3, B11, A15, A10, A9, B14, B13, B12 }
  25. #define MATRIX_ROW_PINS { B10, B1, B0, A7, A6 }
  26. #define DIODE_DIRECTION COL2ROW
  27. #define BACKLIGHT_PIN A8
  28. #define BACKLIGHT_PWM_DRIVER PWMD1
  29. #define BACKLIGHT_PWM_CHANNEL 1
  30. #define BACKLIGHT_LEVELS 6
  31. #define BACKLIGHT_BREATHING
  32. #define BREATHING_PERIOD 6
  33. /* define if matrix has ghost */
  34. //#define MATRIX_HAS_GHOST
  35. /* Set 0 if debouncing isn't needed */
  36. #define DEBOUNCE 5
  37. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  38. #define LOCKING_SUPPORT_ENABLE
  39. /* Locking resynchronize hack */
  40. #define LOCKING_RESYNC_ENABLE
  41. #define RGBLIGHT_ANIMATIONS
  42. #define RGB_DI_PIN B15
  43. #define RGBLED_NUM 9
  44. #define WS2812_SPI SPID2
  45. #define WS2812_SPI_MOSI_PAL_MODE 5
  46. /*
  47. * Feature disable options
  48. * These options are also useful to firmware size reduction.
  49. */
  50. /*
  51. * Force NKRO
  52. *
  53. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  54. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  55. * makefile for this to work.)
  56. *
  57. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  58. * until the next keyboard reset.
  59. *
  60. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  61. * fully operational during normal computer usage.
  62. *
  63. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  64. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  65. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  66. * power-up.
  67. *
  68. */
  69. #define FORCE_NKRO
  70. /* disable debug print */
  71. //#define NO_DEBUG
  72. /* disable print */
  73. //#define NO_PRINT
  74. /* disable action features */
  75. //#define NO_ACTION_LAYER
  76. //#define NO_ACTION_TAPPING
  77. //#define NO_ACTION_ONESHOT
  78. //#define NO_ACTION_MACRO
  79. //#define NO_ACTION_FUNCTION