1 /* Copyright 2017-2019 Nikolaus Wittenstein <nikolaus.wittenstein@gmail.com>
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.
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.
18 #include "config_common.h"
20 /* USB Device descriptor parameter */
21 /* Taken from the DataHand PS/2-USB adaptor. */
22 #define VENDOR_ID 0x13BA
23 #define PRODUCT_ID 0x0017
24 #define DEVICE_VER 0x0001
25 #define MANUFACTURER DataHand
26 #define PRODUCT DataHand
27 #define DESCRIPTION DataHand Teensy++ 2.0 conversion
30 #define MATRIX_ROWS 13
33 //#define DIODE_DIRECTION
35 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
38 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
39 #define LOCKING_SUPPORT_ENABLE
40 /* Locking resynchronize hack */
41 #define LOCKING_RESYNC_ENABLE
46 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
47 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
48 * makefile for this to work.)
50 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
51 * until the next keyboard reset.
53 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
54 * fully operational during normal computer usage.
56 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
57 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
58 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
66 * Magic keys are hotkey commands that allow control over firmware functions of
67 * the keyboard. They are best used in combination with the HID Listen program,
68 * found here: https://www.pjrc.com/teensy/hid_listen.html
70 * The options below allow the magic key functionality to be changed. This is
71 * useful if your keyboard/keypad is missing keys and you want magic key support.
75 * Command/Windows key option
77 * If you define this, the thumb enter key becomes the Command/Windows key. There's still an enter key on the right
78 * ring finger, so this key is much better utilized as the otherwise nonexistent Command key. I think some newer
79 * DataHands let you remap right ring east as Command, but having it on the thumb is nicer. Comment out this define
80 * to use the original layout.
82 #define DATAHAND_THUMB_RETURN_COMMAND