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.

89 lines
2.8 KiB

  1. /* Copyright 2020 BINEPAD
  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 0x4249 // Binepad
  20. #define PRODUCT_ID 0x4287
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Binepad
  23. #define PRODUCT BN003
  24. /* Key matrix size */
  25. #define MATRIX_ROWS 1
  26. #define MATRIX_COLS 3
  27. #define MATRIX_ROW_PINS { C6 }
  28. #define MATRIX_COL_PINS { B4, B5, B6 }
  29. #define UNUSED_PINS
  30. /* COL2ROW, ROW2COL*/
  31. #define DIODE_DIRECTION COL2ROW
  32. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  33. #define DEBOUNCE 5
  34. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  35. //#define MATRIX_HAS_GHOST
  36. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  37. #define LOCKING_SUPPORT_ENABLE
  38. /* Locking resynchronize hack */
  39. #define LOCKING_RESYNC_ENABLE
  40. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  41. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  42. */
  43. // #define GRAVE_ESC_CTRL_OVERRIDE
  44. /*
  45. * Force NKRO
  46. *
  47. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  48. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  49. * makefile for this to work.)
  50. *
  51. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  52. * until the next keyboard reset.
  53. *
  54. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  55. * fully operational during normal computer usage.
  56. *
  57. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  58. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  59. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  60. * power-up.
  61. *
  62. */
  63. //#define FORCE_NKRO
  64. /*
  65. * Magic Key Options
  66. *
  67. * Magic keys are hotkey commands that allow control over firmware functions of
  68. * the keyboard. They are best used in combination with the HID Listen program,
  69. * found here: https://www.pjrc.com/teensy/hid_listen.html
  70. *
  71. * The options below allow the magic key functionality to be changed. This is
  72. * useful if your keyboard/keypad is missing keys and you want magic key support.
  73. *
  74. */