aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/videowriter/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/videowriter/config.h')
-rw-r--r--keyboards/handwired/videowriter/config.h140
1 files changed, 140 insertions, 0 deletions
diff --git a/keyboards/handwired/videowriter/config.h b/keyboards/handwired/videowriter/config.h
new file mode 100644
index 000000000..d392564eb
--- /dev/null
+++ b/keyboards/handwired/videowriter/config.h
@@ -0,0 +1,140 @@
1/*
2Copyright 2019 DmNosachev
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0x0000
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Magnavox
27#define PRODUCT Videowriter
28#define DESCRIPTION Keyboard
29
30/* key matrix size */
31#define MATRIX_ROWS 10
32#define MATRIX_COLS 8
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43 */
44#define MATRIX_ROW_PINS { D7, C6, D1, D0, D4, D2, D3, E6, B4, B5 }
45#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6 }
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL*/
49#define DIODE_DIRECTION COL2ROW
50
51/* Uncomment this if you didn't install diodes */
52//#define MATRIX_HAS_GHOST
53
54/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
55#define DEBOUNCE 5
56
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
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
75/* key combination for magic key command */
76/* defined by default; to change, uncomment and set to the combination you want */
77//#define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
78
79/* control how magic key switches layers */
80//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
81//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
82//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
83
84/* override magic key keymap */
85//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
86//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
87//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
88//#define MAGIC_KEY_HELP H
89//#define MAGIC_KEY_HELP_ALT SLASH
90//#define MAGIC_KEY_DEBUG D
91//#define MAGIC_KEY_DEBUG_MATRIX X
92//#define MAGIC_KEY_DEBUG_KBD K
93//#define MAGIC_KEY_DEBUG_MOUSE M
94//#define MAGIC_KEY_VERSION V
95//#define MAGIC_KEY_STATUS S
96//#define MAGIC_KEY_CONSOLE C
97//#define MAGIC_KEY_LAYER0 0
98//#define MAGIC_KEY_LAYER0_ALT GRAVE
99//#define MAGIC_KEY_LAYER1 1
100//#define MAGIC_KEY_LAYER2 2
101//#define MAGIC_KEY_LAYER3 3
102//#define MAGIC_KEY_LAYER4 4
103//#define MAGIC_KEY_LAYER5 5
104//#define MAGIC_KEY_LAYER6 6
105//#define MAGIC_KEY_LAYER7 7
106//#define MAGIC_KEY_LAYER8 8
107//#define MAGIC_KEY_LAYER9 9
108//#define MAGIC_KEY_BOOTLOADER B
109//#define MAGIC_KEY_BOOTLOADER_ALT ESC
110//#define MAGIC_KEY_LOCK CAPS
111//#define MAGIC_KEY_EEPROM E
112//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
113//#define MAGIC_KEY_NKRO N
114//#define MAGIC_KEY_SLEEP_LED Z
115
116/*
117 * Feature disable options
118 * These options are also useful to firmware size reduction.
119 */
120
121/* disable debug print */
122//#define NO_DEBUG
123
124/* disable print */
125//#define NO_PRINT
126
127/* disable action features */
128//#define NO_ACTION_LAYER
129//#define NO_ACTION_TAPPING
130//#define NO_ACTION_ONESHOT
131
132/* disable these deprecated features by default */
133#ifndef LINK_TIME_OPTIMIZATION_ENABLE
134 #define NO_ACTION_MACRO
135 #define NO_ACTION_FUNCTION
136#endif
137
138/* Bootmagic Lite key configuration */
139// #define BOOTMAGIC_LITE_ROW 0
140// #define BOOTMAGIC_LITE_COLUMN 0