]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/wilba_tech/wt8_a/config.h
[Keyboard] Added WT65-B, WT75-B, minor fixes (#5991)
[qmk_firmware.git] / keyboards / wilba_tech / wt8_a / config.h
1 /* Copyright 2018 Jason Williams (Wilba)
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16
17 #pragma once
18
19 #include "config_common.h"
20
21 /* USB Device descriptor parameter */
22 #define VENDOR_ID       0x6582 // wilba.tech
23 #define PRODUCT_ID      0x008A // 8-A
24 #define DEVICE_VER      0x0001
25 #define MANUFACTURER    wilba.tech
26 #define PRODUCT         wilba.tech WT8-A
27 #define DESCRIPTION     wilba.tech WT8-A
28
29 /* key matrix size */
30 #define MATRIX_ROWS 1
31 #define MATRIX_COLS 8
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 #define MATRIX_ROW_PINS { E6 }
44 #define MATRIX_COL_PINS { F4, F1, B2, B6, F6, F7, D5, B4 }
45 #define UNUSED_PINS
46
47 /* COL2ROW, ROW2COL*/
48 #define DIODE_DIRECTION COL2ROW
49  
50 // #define BACKLIGHT_PIN B7
51 // #define BACKLIGHT_BREATHING
52 // #define BACKLIGHT_LEVELS 3
53
54
55 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
56 #define DEBOUNCE 5
57
58 /* define if matrix has ghost (lacks anti-ghosting diodes) */
59 //#define MATRIX_HAS_GHOST
60
61 /* number of backlight levels */
62
63 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
64 #define LOCKING_SUPPORT_ENABLE
65 /* Locking resynchronize hack */
66 #define LOCKING_RESYNC_ENABLE
67
68 /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
69  * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
70  */
71 // #define GRAVE_ESC_CTRL_OVERRIDE
72
73 /*
74  * Force NKRO
75  *
76  * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
77  * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
78  * makefile for this to work.)
79  *
80  * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
81  * until the next keyboard reset.
82  *
83  * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
84  * fully operational during normal computer usage.
85  *
86  * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
87  * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
88  * bootmagic, NKRO mode will always be enabled until it is toggled again during a
89  * power-up.
90  *
91  */
92 //#define FORCE_NKRO
93
94 // Does not use WT_MONO_BACKLIGHT
95 // #define WT_MONO_BACKLIGHT
96
97 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
98
99 // EEPROM usage
100
101 // TODO: refactor with new user EEPROM code (coming soon)
102 #define EEPROM_MAGIC 0x451F
103 #define EEPROM_MAGIC_ADDR 32
104 // Bump this every time we change what we store
105 // This will automatically reset the EEPROM with defaults
106 // and avoid loading invalid data from the EEPROM
107 #define EEPROM_VERSION 0x08
108 #define EEPROM_VERSION_ADDR 34
109
110 // Dynamic keymap starts after EEPROM version
111 #define DYNAMIC_KEYMAP_EEPROM_ADDR 35
112 // Dynamic macro starts after dynamic keymaps (35+(4*1*8*2)) = (35+64)
113 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 99
114 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 925
115 #define DYNAMIC_KEYMAP_MACRO_COUNT 16