]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/datahand/config.h
Circular animation (#4796)
[qmk_firmware.git] / keyboards / handwired / datahand / config.h
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
16 #pragma once
17
18 #include "config_common.h"
19
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
28
29 /* key matrix size */
30 #define MATRIX_ROWS 13
31 #define MATRIX_COLS 4
32
33 #define DIODE_DIRECTION CUSTOM_MATRIX
34
35 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
36 #define DEBOUNCING_DELAY 0
37
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
42
43 /*
44  * Force NKRO
45  *
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.)
49  *
50  * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
51  * until the next keyboard reset.
52  *
53  * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
54  * fully operational during normal computer usage.
55  *
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
59  * power-up.
60  */
61 #define FORCE_NKRO
62
63 /*
64  * Magic Key Options
65  *
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
69  *
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.
72  */
73
74 /* key combination for magic key command */
75 #define IS_COMMAND() ( \
76     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
77 )
78
79 /*
80  * Command/Windows key option
81  *
82  * If you define this, the thumb enter key becomes the Command/Windows key. There's still an enter key on the right
83  * ring finger, so this key is much better utilized as the otherwise nonexistent Command key. I think some newer
84  * DataHands let you remap right ring east as Command, but having it on the thumb is nicer. Comment out this define
85  * to use the original layout.
86  */
87 #define DATAHAND_THUMB_RETURN_COMMAND