aboutsummaryrefslogtreecommitdiff
path: root/keyboards/draytronics/scarlet/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/draytronics/scarlet/config.h')
-rw-r--r--keyboards/draytronics/scarlet/config.h96
1 files changed, 96 insertions, 0 deletions
diff --git a/keyboards/draytronics/scarlet/config.h b/keyboards/draytronics/scarlet/config.h
new file mode 100644
index 000000000..f7b50dee7
--- /dev/null
+++ b/keyboards/draytronics/scarlet/config.h
@@ -0,0 +1,96 @@
1/*Copyright 2020 Blake Drayson / Draytronics
2
3Contact [email protected]
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along 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 0x5343 //SC for Scarlet
25#define DEVICE_VER 0x0001 //Version 1
26#define MANUFACTURER Draytronics
27#define PRODUCT SCARLET
28/* key matrix size */
29#define MATRIX_ROWS 5
30#define MATRIX_COLS 4
31
32/*
33 * Keyboard Matrix Assignments
34 *
35 * Change this to how you wired your keyboard
36 * COLS: AVR pins used for columns, left to right
37 * ROWS: AVR pins used for rows, top to bottom
38 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
39 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
40 *
41 */
42
43#define MATRIX_ROW_PINS { A0, A1, A2, A3, A4 }
44#define MATRIX_COL_PINS { A5, A6, A7, C7 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL*/
48#define DIODE_DIRECTION COL2ROW
49
50/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
51#define DEBOUNCE 5
52/* define if matrix has ghost (lacks anti-ghosting diodes) */
53//#define MATRIX_HAS_GHOST
54/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55#define LOCKING_SUPPORT_ENABLE
56/* Locking resynchronize hack */
57#define LOCKING_RESYNC_ENABLE
58/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
59 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
60 */
61//#define GRAVE_ESC_CTRL_OVERRIDE
62/*
63 * Force NKRO
64 *
65 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
66 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
67 * makefile for this to work.)
68 *
69 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
70 * until the next keyboard reset.
71 *
72 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
73 * fully operational during normal computer usage.
74 *
75 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
76 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
77 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
78 * power-up.
79 *
80 */
81//#define FORCE_NKRO
82/*
83 * Feature disable options
84 * These options are also useful to firmware size reduction.
85 */
86/* disable debug print */
87//#define NO_DEBUG
88/* disable print */
89//#define NO_PRINT
90/* disable action features */
91//#define NO_ACTION_LAYER
92//#define NO_ACTION_TAPPING
93//#define NO_ACTION_ONESHOT
94/* disable these deprecated features by default */
95#define NO_ACTION_MACRO
96#define NO_ACTION_FUNCTION