aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hs60/v2/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/hs60/v2/config.h')
-rw-r--r--keyboards/hs60/v2/config.h89
1 files changed, 52 insertions, 37 deletions
diff --git a/keyboards/hs60/v2/config.h b/keyboards/hs60/v2/config.h
index 192f7d6f2..bc1681ffd 100644
--- a/keyboards/hs60/v2/config.h
+++ b/keyboards/hs60/v2/config.h
@@ -20,9 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
20#include "config_common.h" 20#include "config_common.h"
21 21
22/* USB Device descriptor parameter */ 22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED 23#define VENDOR_ID 0x8968
24#define PRODUCT_ID 0x0258 24#define PRODUCT_ID 0x4853
25#define DEVICE_VER 0x0001 25#define DEVICE_VER 0x0002
26#define MANUFACTURER Yiancar-Designs 26#define MANUFACTURER Yiancar-Designs
27#define PRODUCT HS60 V2 27#define PRODUCT HS60 V2
28#define DESCRIPTION GH60 compatible, tool free RGB keyboard 28#define DESCRIPTION GH60 compatible, tool free RGB keyboard
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
39#define DIODE_DIRECTION COL2ROW 39#define DIODE_DIRECTION COL2ROW
40 40
41/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ 41/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
42#define DEBOUNCE 0 42#define DEBOUNCING_DELAY 5
43 43
44/* define if matrix has ghost (lacks anti-ghosting diodes) */ 44/* define if matrix has ghost (lacks anti-ghosting diodes) */
45//#define MATRIX_HAS_GHOST 45//#define MATRIX_HAS_GHOST
@@ -70,48 +70,63 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
70 */ 70 */
71//#define FORCE_NKRO 71//#define FORCE_NKRO
72 72
73/*
74 * Magic Key Options
75 *
76 * Magic keys are hotkey commands that allow control over firmware functions of
77 * the keyboard. They are best used in combination with the HID Listen program,
78 * found here: https://www.pjrc.com/teensy/hid_listen.html
79 *
80 * The options below allow the magic key functionality to be changed. This is
81 * useful if your keyboard/keypad is missing keys and you want magic key support.
82 *
83 */
84
85/* key combination for magic key command */ 73/* key combination for magic key command */
86#define IS_COMMAND() ( \ 74#define IS_COMMAND() ( \
87 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ 75 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
88) 76)
89 77
90/* 78/* Backlight options */
91 * Feature disable options
92 * These options are also useful to firmware size reduction.
93 */
94 79
95/* disable debug print */ 80#define RGB_BACKLIGHT_ENABLED 1
96//#define NO_DEBUG
97 81
98/* disable print */ 82#define RGB_BACKLIGHT_HS60
99//#define NO_PRINT
100 83
101/* Backlight options */ 84// they aren't really used if RGB_BACKLIGHT_HS60 defined
85#define RGB_BACKLIGHT_USE_SPLIT_BACKSPACE 0
86#define RGB_BACKLIGHT_USE_SPLIT_LEFT_SHIFT 0
87#define RGB_BACKLIGHT_USE_SPLIT_RIGHT_SHIFT 0
88#define RGB_BACKLIGHT_USE_7U_SPACEBAR 0
89#define RGB_BACKLIGHT_USE_ISO_ENTER 0
90#define RGB_BACKLIGHT_DISABLE_HHKB_BLOCKER_LEDS 0
102 91
103#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 92// disable backlight when USB suspended (PC sleep/hibernate/shutdown)
104#define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended 93#define RGB_BACKLIGHT_DISABLE_WHEN_USB_SUSPENDED 0
105#define RGB_MATRIX_SKIP_FRAMES 3
106 94
107#define DRIVER_ADDR_1 0b1010000 95// disable backlight after timeout in minutes, 0 = no timeout
108#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. 96#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0
109 97
110#define DRIVER_COUNT 2 98// the default effect (RGB test)
111#ifdef HS60_ANSI 99#define RGB_BACKLIGHT_EFFECT 255
112#define DRIVER_1_LED_TOTAL 61
113#else
114#define DRIVER_1_LED_TOTAL 62
115#endif
116 100
117#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 101#define DRIVER_COUNT 2
102#define DRIVER_LED_TOTAL 64
103
104// These define which keys in the matrix are alphas/mods
105// Used for backlight effects so colors are different for
106// alphas vs. mods
107// Each value is for a row, bit 0 is column 0
108// Alpha=0 Mod=1
109#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_0 0b0010000000000001
110#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_1 0b0000000000000001
111#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_2 0b0010000000000001
112#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0010000000000001
113#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0011110000000111
114
115// TODO: refactor with new user EEPROM code (coming soon)
116#define EEPROM_MAGIC 0x451F
117#define EEPROM_MAGIC_ADDR 32
118// Bump this every time we change what we store
119// This will automatically reset the EEPROM with defaults
120// and avoid loading invalid data from the EEPROM
121#define EEPROM_VERSION 0x08
122#define EEPROM_VERSION_ADDR 34
123
124// Backlight config starts after EEPROM version
125#define RGB_BACKLIGHT_CONFIG_EEPROM_ADDR 35
126// Dynamic keymap starts after backlight config (35+31)
127#define DYNAMIC_KEYMAP_EEPROM_ADDR 66
128#define DYNAMIC_KEYMAP_LAYER_COUNT 4
129// Dynamic macro starts after dynamic keymaps (66+(4*5*14*2)) = (66+560)
130#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 626
131#define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 398
132#define DYNAMIC_KEYMAP_MACRO_COUNT 16