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.

81 lines
3.0 KiB

  1. /* Copyright 2017-2019 Nikolaus Wittenstein <nikolaus.wittenstein@gmail.com>
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  8. * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  9. * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  10. * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  11. * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  12. * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  13. * PERFORMANCE OF THIS SOFTWARE.
  14. */
  15. #pragma once
  16. #include "config_common.h"
  17. /* USB Device descriptor parameter */
  18. /* Taken from the DataHand PS/2-USB adaptor. */
  19. #define VENDOR_ID 0x13BA
  20. #define PRODUCT_ID 0x0017
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER DataHand
  23. #define PRODUCT DataHand
  24. /* key matrix size */
  25. #define MATRIX_ROWS 13
  26. #define MATRIX_COLS 4
  27. //#define DIODE_DIRECTION
  28. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  29. #define DEBOUNCE 0
  30. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  31. #define LOCKING_SUPPORT_ENABLE
  32. /* Locking resynchronize hack */
  33. #define LOCKING_RESYNC_ENABLE
  34. /*
  35. * Force NKRO
  36. *
  37. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  38. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  39. * makefile for this to work.)
  40. *
  41. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  42. * until the next keyboard reset.
  43. *
  44. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  45. * fully operational during normal computer usage.
  46. *
  47. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  48. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  49. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  50. * power-up.
  51. */
  52. #define FORCE_NKRO
  53. /*
  54. * Magic Key Options
  55. *
  56. * Magic keys are hotkey commands that allow control over firmware functions of
  57. * the keyboard. They are best used in combination with the HID Listen program,
  58. * found here: https://www.pjrc.com/teensy/hid_listen.html
  59. *
  60. * The options below allow the magic key functionality to be changed. This is
  61. * useful if your keyboard/keypad is missing keys and you want magic key support.
  62. */
  63. /*
  64. * Command/Windows key option
  65. *
  66. * If you define this, the thumb enter key becomes the Command/Windows key. There's still an enter key on the right
  67. * ring finger, so this key is much better utilized as the otherwise nonexistent Command key. I think some newer
  68. * DataHands let you remap right ring east as Command, but having it on the thumb is nicer. Comment out this define
  69. * to use the original layout.
  70. */
  71. #define DATAHAND_THUMB_RETURN_COMMAND