diff options
Diffstat (limited to 'keyboards/draytronics/daisy/config.h')
-rw-r--r-- | keyboards/draytronics/daisy/config.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/keyboards/draytronics/daisy/config.h b/keyboards/draytronics/daisy/config.h new file mode 100644 index 000000000..b524f8902 --- /dev/null +++ b/keyboards/draytronics/daisy/config.h | |||
@@ -0,0 +1,112 @@ | |||
1 | /*Copyright 2021 Blake Drayson / Draytronics | ||
2 | |||
3 | Contact [email protected] | ||
4 | |||
5 | This program is free software: you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation, either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #pragma once | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | #define VENDOR_ID 0x4454 //DT for DrayTronics | ||
24 | #define PRODUCT_ID 0x4441 //DA for Daisy | ||
25 | #define DEVICE_VER 0x0100 //Version 1 | ||
26 | #define MANUFACTURER Draytronics | ||
27 | #define PRODUCT DAISY | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 3 | ||
31 | #define MATRIX_COLS 4 | ||
32 | |||
33 | /* | ||
34 | * Keyboard Matrix Assignments | ||
35 | * | ||
36 | * Change this to how you wired your keyboard | ||
37 | * COLS: AVR pins used for columns, left to right | ||
38 | * ROWS: AVR pins used for rows, top to bottom | ||
39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
41 | * | ||
42 | */ | ||
43 | |||
44 | #define MATRIX_ROW_PINS { B0, C0, C1} | ||
45 | #define MATRIX_COL_PINS { C2, C3, C4, C5 } | ||
46 | #define UNUSED_PINS | ||
47 | |||
48 | #define ENCODERS_PAD_A { B1, D0 } | ||
49 | #define ENCODERS_PAD_B { B2, D1 } | ||
50 | /* COL2ROW, ROW2COL*/ | ||
51 | #define DIODE_DIRECTION COL2ROW | ||
52 | #define TAP_CODE_DELAY 10 | ||
53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
54 | #define DEBOUNCE 5 | ||
55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
56 | //#define MATRIX_HAS_GHOST | ||
57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
58 | #define LOCKING_SUPPORT_ENABLE | ||
59 | /* Locking resynchronize hack */ | ||
60 | #define LOCKING_RESYNC_ENABLE | ||
61 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
62 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
63 | */ | ||
64 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
65 | /* | ||
66 | * Force NKRO | ||
67 | * | ||
68 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
69 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
70 | * makefile for this to work.) | ||
71 | * | ||
72 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
73 | * until the next keyboard reset. | ||
74 | * | ||
75 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
76 | * fully operational during normal computer usage. | ||
77 | * | ||
78 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
79 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
80 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
81 | * power-up. | ||
82 | * | ||
83 | */ | ||
84 | //#define FORCE_NKRO | ||
85 | /* | ||
86 | * Feature disable options | ||
87 | * These options are also useful to firmware size reduction. | ||
88 | */ | ||
89 | /* disable debug print */ | ||
90 | //#define NO_DEBUG | ||
91 | /* disable print */ | ||
92 | //#define NO_PRINT | ||
93 | /* disable action features */ | ||
94 | //#define NO_ACTION_LAYER | ||
95 | //#define NO_ACTION_TAPPING | ||
96 | //#define NO_ACTION_ONESHOT | ||
97 | /* disable these deprecated features by default */ | ||
98 | #define NO_ACTION_MACRO | ||
99 | #define NO_ACTION_FUNCTION | ||
100 | |||
101 | //Underglow | ||
102 | #define RGB_DI_PIN D4 // Underglow led pin | ||
103 | #ifdef RGB_DI_PIN | ||
104 | #define RGBLED_NUM 4 | ||
105 | #define RGBLIGHT_HUE_STEP 8 | ||
106 | #define RGBLIGHT_SAT_STEP 8 | ||
107 | #define RGBLIGHT_VAL_STEP 8 | ||
108 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
109 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
110 | /*== all animations enable ==*/ | ||
111 | #define RGBLIGHT_ANIMATIONS | ||
112 | #endif | ||