From 1f6cb53fb34867827c487e523f7134bab1acab04 Mon Sep 17 00:00:00 2001 From: Jonathan Rascher Date: Fri, 1 Nov 2019 20:48:58 -0500 Subject: [Keymap] Moar personal keymap and userspace tweaks (#7238) * Enable link-time optimization * Make RGB static gradient ranges shorter * Shift Quefrency media keys to the right * Shift KBD67 media keys to the right * Move some 60% keys from function to adjust layer * Set "extra" Lily58 keys to browser back/forward * Remove Instant60 EEPROM hack after #6968 * Remove unnecessary bits from macropad keymaps * Update KLE images --- users/bcat/bcat.c | 6 ++++++ users/bcat/config.h | 18 ------------------ users/bcat/rules.mk | 5 +++++ 3 files changed, 11 insertions(+), 18 deletions(-) create mode 100644 users/bcat/bcat.c (limited to 'users/bcat') diff --git a/users/bcat/bcat.c b/users/bcat/bcat.c new file mode 100644 index 0000000000..bea64dbaa9 --- /dev/null +++ b/users/bcat/bcat.c @@ -0,0 +1,6 @@ +#include "quantum.h" + +#if defined(RGBLIGHT_ENABLE) + /* Adjust RGB static hue ranges for shorter gradients than default. */ + const uint8_t RGBLED_GRADIENT_RANGES[] PROGMEM = {255, 127, 63, 31, 15}; +#endif diff --git a/users/bcat/config.h b/users/bcat/config.h index 5f49a4ed37..f6be07bf6e 100644 --- a/users/bcat/config.h +++ b/users/bcat/config.h @@ -65,21 +65,3 @@ #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 107b470edb..6d3444b2ce 100644 --- a/users/bcat/rules.mk +++ b/users/bcat/rules.mk @@ -1,3 +1,5 @@ +SRC += bcat.c + # Enable Bootmagic Lite to consistently reset to bootloader and clear EEPROM. BOOTMAGIC_ENABLE = lite @@ -16,3 +18,6 @@ SLEEP_LED_ENABLE = no UCIS_ENABLE = no UNICODE_ENABLE = no UNICODEMAP_ENABLE = no + +# Enable link-time optimization to reduce binary size. +LINK_TIME_OPTIMIZATION_ENABLE = yes -- cgit v1.2.3