aboutsummaryrefslogtreecommitdiff
path: root/users/bcat
diff options
context:
space:
mode:
Diffstat (limited to 'users/bcat')
-rw-r--r--users/bcat/bcat.c6
-rw-r--r--users/bcat/config.h18
-rw-r--r--users/bcat/rules.mk5
3 files changed, 11 insertions, 18 deletions
diff --git a/users/bcat/bcat.c b/users/bcat/bcat.c
new file mode 100644
index 000000000..bea64dbaa
--- /dev/null
+++ b/users/bcat/bcat.c
@@ -0,0 +1,6 @@
1#include "quantum.h"
2
3#if defined(RGBLIGHT_ENABLE)
4 /* Adjust RGB static hue ranges for shorter gradients than default. */
5 const uint8_t RGBLED_GRADIENT_RANGES[] PROGMEM = {255, 127, 63, 31, 15};
6#endif
diff --git a/users/bcat/config.h b/users/bcat/config.h
index 5f49a4ed3..f6be07bf6 100644
--- a/users/bcat/config.h
+++ b/users/bcat/config.h
@@ -65,21 +65,3 @@
65 #define MOUSEKEY_WHEEL_MAX_SPEED 3 65 #define MOUSEKEY_WHEEL_MAX_SPEED 3
66 #define MOUSEKEY_WHEEL_TIME_TO_MAX 150 66 #define MOUSEKEY_WHEEL_TIME_TO_MAX 150
67#endif 67#endif
68
69#if defined(KEYBOARD_cannonkeys_instant60)
70 /*
71 * Work around EEPROM incompatibility with VIA:
72 * https://github.com/qmk/qmk_firmware/issues/6589#issuecomment-524042457.
73 */
74 #undef EEPROM_MAGIC_ADDR
75 #undef EEPROM_VERSION_ADDR
76 #undef DYNAMIC_KEYMAP_EEPROM_ADDR
77 #undef EEPROM_CUSTOM_BACKLIGHT
78 #undef DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
79
80 #define EEPROM_MAGIC_ADDR 34
81 #define EEPROM_VERSION_ADDR 36
82 #define DYNAMIC_KEYMAP_EEPROM_ADDR 37
83 #define EEPROM_CUSTOM_BACKLIGHT 637
84 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 638
85#endif
diff --git a/users/bcat/rules.mk b/users/bcat/rules.mk
index 107b470ed..6d3444b2c 100644
--- a/users/bcat/rules.mk
+++ b/users/bcat/rules.mk
@@ -1,3 +1,5 @@
1SRC += bcat.c
2
1# Enable Bootmagic Lite to consistently reset to bootloader and clear EEPROM. 3# Enable Bootmagic Lite to consistently reset to bootloader and clear EEPROM.
2BOOTMAGIC_ENABLE = lite 4BOOTMAGIC_ENABLE = lite
3 5
@@ -16,3 +18,6 @@ SLEEP_LED_ENABLE = no
16UCIS_ENABLE = no 18UCIS_ENABLE = no
17UNICODE_ENABLE = no 19UNICODE_ENABLE = no
18UNICODEMAP_ENABLE = no 20UNICODEMAP_ENABLE = no
21
22# Enable link-time optimization to reduce binary size.
23LINK_TIME_OPTIMIZATION_ENABLE = yes