summaryrefslogtreecommitdiff
path: root/users/bcat
diff options
context:
space:
mode:
authorJonathan Rascher <jon@bcat.name>2019-09-07 10:58:17 -0500
committerDrashna Jaelre <drashna@live.com>2019-09-07 08:58:17 -0700
commitd90038eb9cc62ffd4f0e4a6a3c6de54a8670f51b (patch)
treec5ee0767bd5a2d19304c2782e55b58ec5a774b71 /users/bcat
parente88f80a891138d40acddcdd2b3dface8b2a57404 (diff)
[Keymap] Assorted personal keymap/userspace updates (#6691)
* Turn off more unnecessary features by default * Double TAP_CODE_DELAY due to more media key issues Even with this change, some of the rotary encoder turns on my BDN9's volume knob still seem to get dropped. It's possible there's something wrong with the encoder itself. (Maybe the TAP_CODE_DELAY actually causes QMK to miss an encoder turn? Unclear.) The other knob (backlight brightness) works fine, FWIW.... * Restructure userspace config.h a bit * Hack around Instant60 Via EEPROM conflict Remove this when #6589 is fixed for Via boards. * Add backlight breathing and (EEPROM) reset to BDN9 * Add keymap for 9-Key macropad
Diffstat (limited to 'users/bcat')
-rw-r--r--users/bcat/config.h84
-rw-r--r--users/bcat/rules.mk2
2 files changed, 59 insertions, 27 deletions
diff --git a/users/bcat/config.h b/users/bcat/config.h
index 7d42008955..990fda68ca 100644
--- a/users/bcat/config.h
+++ b/users/bcat/config.h
@@ -1,36 +1,66 @@
-/* Delay between tap_code register and unregister to fix flaky media keys. */
+/* Wait between tap_code register and unregister to fix flaky media keys. */
#undef TAP_CODE_DELAY
-#define TAP_CODE_DELAY 10
+#define TAP_CODE_DELAY 20
-/* Turn off RGB lighting when the host goes to sleep. */
-#define RGBLIGHT_SLEEP
+#if defined(RGBLIGHT_ENABLE)
+ /* Turn off RGB underglow when the host goes to sleep. */
+ #define RGBLIGHT_SLEEP
-/* Keep backlight and RGB level increments consistent across keyboards. */
-#undef BACKLIGHT_LEVELS
-#undef RGBLIGHT_HUE_STEP
-#undef RGBLIGHT_SAT_STEP
-#undef RGBLIGHT_VAL_STEP
+ /* Keep RGB underglow level increments consistent across keyboards. */
+ #undef RGBLIGHT_HUE_STEP
+ #undef RGBLIGHT_SAT_STEP
+ #undef RGBLIGHT_VAL_STEP
-#define BACKLIGHT_LEVELS 7
-#define RGBLIGHT_HUE_STEP 8
-#define RGBLIGHT_SAT_STEP 17
-#define RGBLIGHT_VAL_STEP 17
+ #define RGBLIGHT_HUE_STEP 8
+ #define RGBLIGHT_SAT_STEP 17
+ #define RGBLIGHT_VAL_STEP 17
+#endif
-/* Make mouse operation smoother. */
-#undef MOUSEKEY_DELAY
-#undef MOUSEKEY_INTERVAL
+#if defined(BACKLIGHT_ENABLE)
+ /* Enable backlight breathing across the board. */
+ #define BACKLIGHT_BREATHING
-#define MOUSEKEY_DELAY 0
-#define MOUSEKEY_INTERVAL 16
+ /* Keep backlight level increments consistent across keyboards. */
+ #undef BACKLIGHT_LEVELS
-/* Lower mouse speed to adjust for reduced MOUSEKEY_INTERVAL. */
-#undef MOUSEKEY_MAX_SPEED
-#undef MOUSEKEY_TIME_TO_MAX
-#undef MOUSEKEY_WHEEL_MAX_SPEED
-#undef MOUSEKEY_WHEEL_TIME_TO_MAX
+ #define BACKLIGHT_LEVELS 7
+#endif
-#define MOUSEKEY_MAX_SPEED 7
-#define MOUSEKEY_TIME_TO_MAX 150
-#define MOUSEKEY_WHEEL_MAX_SPEED 3
-#define MOUSEKEY_WHEEL_TIME_TO_MAX 150
+#if defined(MOUSEKEY_ENABLE)
+ /* Make mouse operation smoother. */
+ #undef MOUSEKEY_DELAY
+ #undef MOUSEKEY_INTERVAL
+
+ #define MOUSEKEY_DELAY 0
+ #define MOUSEKEY_INTERVAL 16
+
+ /* Lower mouse speed to adjust for reduced MOUSEKEY_INTERVAL. */
+ #undef MOUSEKEY_MAX_SPEED
+ #undef MOUSEKEY_TIME_TO_MAX
+ #undef MOUSEKEY_WHEEL_MAX_SPEED
+ #undef MOUSEKEY_WHEEL_TIME_TO_MAX
+
+ #define MOUSEKEY_MAX_SPEED 7
+ #define MOUSEKEY_TIME_TO_MAX 150
+ #define MOUSEKEY_WHEEL_MAX_SPEED 3
+ #define MOUSEKEY_WHEEL_TIME_TO_MAX 150
+#endif
+
+#if defined(KEYBOARD_cannonkeys_instant60)
+ /*
+ * Work around EEPROM incompatibility with VIA:
+ * https://github.com/qmk/qmk_firmware/issues/6589#issuecomment-524042457.
+ */
+ #undef EEPROM_MAGIC_ADDR
+ #undef EEPROM_VERSION_ADDR
+ #undef DYNAMIC_KEYMAP_EEPROM_ADDR
+ #undef EEPROM_CUSTOM_BACKLIGHT
+ #undef DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
+
+ #define EEPROM_MAGIC_ADDR 34
+ #define EEPROM_VERSION_ADDR 36
+ #define DYNAMIC_KEYMAP_EEPROM_ADDR 37
+ #define EEPROM_CUSTOM_BACKLIGHT 637
+ #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 638
+#endif
diff --git a/users/bcat/rules.mk b/users/bcat/rules.mk
index 59f82709ad..407729c82b 100644
--- a/users/bcat/rules.mk
+++ b/users/bcat/rules.mk
@@ -9,3 +9,5 @@ EXTRAKEY_ENABLE = yes
CONSOLE_ENABLE = no
COMMAND_ENABLE = no
NKRO_ENABLE = no
+UNICODE_ENABLE = no
+API_SYSEX_ENABLE = no