aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hs60/v2/hhkb/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/hs60/v2/hhkb/config.h')
-rw-r--r--keyboards/hs60/v2/hhkb/config.h146
1 files changed, 146 insertions, 0 deletions
diff --git a/keyboards/hs60/v2/hhkb/config.h b/keyboards/hs60/v2/hhkb/config.h
new file mode 100644
index 000000000..45cfe5716
--- /dev/null
+++ b/keyboards/hs60/v2/hhkb/config.h
@@ -0,0 +1,146 @@
1/*
2Copyright 2018 Yiancar
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 0x8968
24#define PRODUCT_ID 0x4855
25#define DEVICE_VER 0x0002
26#define MANUFACTURER Yiancar-Designs
27#define PRODUCT HS60 V2
28#define DESCRIPTION GH60 compatible, tool free RGB keyboard
29
30#define HS60_HHKB
31
32/* key matrix size */
33#define MATRIX_ROWS 5
34#define MATRIX_COLS 14
35
36#define MATRIX_ROW_PINS { B3, B4, B5, A8, A4 }
37#define MATRIX_COL_PINS { A13, A10, A9, A14, A15, B8, B9, C13, C14, C15, A0, A1, A2, A3 }
38// To enable debugger set A13 A14 -> A5 A6
39
40/* COL2ROW, ROW2COL*/
41#define DIODE_DIRECTION COL2ROW
42
43/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
44#define DEBOUNCE 5
45
46/* define if matrix has ghost (lacks anti-ghosting diodes) */
47//#define MATRIX_HAS_GHOST
48
49/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
50 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
51 */
52// #define GRAVE_ESC_CTRL_OVERRIDE
53
54/*
55 * Force NKRO
56 *
57 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
58 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
59 * makefile for this to work.)
60 *
61 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
62 * until the next keyboard reset.
63 *
64 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
65 * fully operational during normal computer usage.
66 *
67 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
68 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
69 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
70 * power-up.
71 *
72 */
73//#define FORCE_NKRO
74
75/*
76 * Magic Key Options
77 *
78 * Magic keys are hotkey commands that allow control over firmware functions of
79 * the keyboard. They are best used in combination with the HID Listen program,
80 * found here: https://www.pjrc.com/teensy/hid_listen.html
81 *
82 * The options below allow the magic key functionality to be changed. This is
83 * useful if your keyboard/keypad is missing keys and you want magic key support.
84 *
85 */
86
87/* Bootmagic Lite key configuration */
88#define BOOTMAGIC_LITE_ROW 0
89#define BOOTMAGIC_LITE_COLUMN 0
90
91/* Backlight options */
92
93#define RGB_BACKLIGHT_ENABLED 1
94
95#define RGB_BACKLIGHT_HS60
96
97// they aren't really used if RGB_BACKLIGHT_HS60 defined
98#define RGB_BACKLIGHT_USE_SPLIT_BACKSPACE 0
99#define RGB_BACKLIGHT_USE_SPLIT_LEFT_SHIFT 0
100#define RGB_BACKLIGHT_USE_SPLIT_RIGHT_SHIFT 0
101#define RGB_BACKLIGHT_USE_7U_SPACEBAR 0
102#define RGB_BACKLIGHT_USE_ISO_ENTER 0
103#define RGB_BACKLIGHT_DISABLE_HHKB_BLOCKER_LEDS 0
104
105// disable backlight when USB suspended (PC sleep/hibernate/shutdown)
106#define RGB_BACKLIGHT_DISABLE_WHEN_USB_SUSPENDED 0
107
108// disable backlight after timeout in minutes, 0 = no timeout
109#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0
110
111// the default brightness
112#define RGB_BACKLIGHT_BRIGHTNESS 255
113
114// the default effect (RGB test)
115#define RGB_BACKLIGHT_EFFECT 6
116
117// the default effect speed (0-3)
118#define RGB_BACKLIGHT_EFFECT_SPEED 0
119
120// the default color1 and color2
121#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 }
122#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
123
124#define DRIVER_COUNT 2
125#define DRIVER_LED_TOTAL 64
126
127// These define which keys in the matrix are alphas/mods
128// Used for backlight effects so colors are different for
129// alphas vs. mods
130// Each value is for a row, bit 0 is column 0
131// Alpha=0 Mod=1
132#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_0 0b0000000000000001
133#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_1 0b0000000000000001
134#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_2 0b0011000000000001
135#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0011000000000001
136#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0011100000000111
137
138#define RGB_BACKLIGHT_CAPS_LOCK_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
139#define RGB_BACKLIGHT_LAYER_1_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
140#define RGB_BACKLIGHT_LAYER_2_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
141#define RGB_BACKLIGHT_LAYER_3_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
142
143// Backlight config starts after VIA's EEPROM usage,
144// dynamic keymaps start after this.
145#define VIA_EEPROM_CUSTOM_CONFIG_SIZE 31
146