Skip to content

Commit f108471

Browse files
authored
[Keyboard] Update lighting effects for xbows ranger keyboard (#14318)
1 parent 85b052b commit f108471

File tree

4 files changed

+22
-13
lines changed

4 files changed

+22
-13
lines changed

keyboards/xbows/ranger/config.h

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
#define DIODE_DIRECTION COL2ROW
3131
#define DEBOUNCE 3
3232

33+
/* disable these deprecated features by default */
34+
#define NO_ACTION_MACRO
35+
#define NO_ACTION_FUNCTION
36+
3337
#ifdef RGB_MATRIX_ENABLE
3438
# define RGB_MATRIX_LED_PROCESS_LIMIT 18
3539
# define RGB_MATRIX_LED_FLUSH_LIMIT 16

keyboards/xbows/ranger/keymaps/default/config.h

+11-6
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,32 @@
1717

1818
#ifdef RGB_MATRIX_ENABLE
1919
# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
20+
21+
# define DISABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
2022
# define DISABLE_RGB_MATRIX_SOLID_COLOR // Static single hue, no speed support
2123
# define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
24+
# define DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT // Static gradient left to right, speed controls how much gradient changes
2225
# define DISABLE_RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
2326
# define DISABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
2427
# define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
25-
# define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAT // Single hue spinning spiral fades saturation
28+
# define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
29+
# define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT // Single hue spinning spiral fades saturation
2630
# define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
27-
# define DISABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
31+
# define DISABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
32+
# define DISABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
33+
# define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
34+
# define DISABLE_RGB_MATRIX_HUE_BREATHING // Hue shifts up a slight ammount at the same time, then shifts back
35+
# define DISABLE_RGB_MATRIX_HUE_PENDULUM // Hue shifts up a slight ammount in a wave to the right, then back to the left
36+
# define DISABLE_RGB_MATRIX_HUE_WAVE // Hue shifts up a slight ammount and then back down in a wave to the right
2837

2938
# define DISABLE_RGB_MATRIX_DIGITAL_RAIN // That famous computer simulation
3039
# define DISABLE_RGB_MATRIX_TYPING_HEATMAP // How hot is your WPM!
3140

32-
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
3341
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
34-
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
3542
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
3643
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
3744
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
38-
//# define DISABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
3945
# define DISABLE_RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
4046
# define DISABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
41-
//# define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
4247

4348
#endif

keyboards/xbows/ranger/ranger.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
108108
{2, C9_10, C8_10, C7_10}, // L84
109109
{2, C9_11, C8_11, C7_11}, // L85
110110
{2, C9_12, C8_12, C7_12}, // L86
111-
{2, C9_13, C8_13, C7_13}, // L87n
111+
{2, C9_13, C8_13, C7_13}, // L87
112112
};
113113

114114
// clang-format off
@@ -127,12 +127,12 @@ led_config_t g_led_config = { {
127127
{6,51}, {26,51}, {38,51}, {50,51}, {62,51}, {74,51}, {86,51}, {98,51}, {110,51}, {122,51}, {134,51}, {155,51}, {165,27}, {210,51},
128128
{1,63}, {16,63}, {31,63}, {64,63}, {121,63},{136,63}, {151,63}, {166,63},{182,63}, {194,63}, {206,63}
129129
}, {
130-
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
131-
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
132-
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
133-
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
130+
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
131+
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
132+
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
134133
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
135-
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
134+
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
135+
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
136136
}
137137
};
138138
// clang-format on

keyboards/xbows/ranger/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ EXTRAKEY_ENABLE = yes # Audio control and System control
1313
CONSOLE_ENABLE = no # Console for debug
1414
COMMAND_ENABLE = no # Commands for debug and configuration
1515
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16-
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
16+
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
1717
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
1818
NKRO_ENABLE = yes # USB Nkey Rollover
1919
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality

0 commit comments

Comments
 (0)