mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-06-23 13:42:43 -04:00
Remove RGB_DI_PIN
ifdefs (#20218)
This commit is contained in:
parent
b472dce55a
commit
d4675a1281
4 changed files with 0 additions and 10 deletions
|
@ -212,7 +212,6 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
void keyboard_post_init_user(void) {
|
void keyboard_post_init_user(void) {
|
||||||
debug_enable=true;
|
debug_enable=true;
|
||||||
#ifdef RGB_DI_PIN
|
|
||||||
#ifdef RGBLIGHT_LAYERS
|
#ifdef RGBLIGHT_LAYERS
|
||||||
// Enable the LED layers.
|
// Enable the LED layers.
|
||||||
rgblight_layers = my_rgb_layers;
|
rgblight_layers = my_rgb_layers;
|
||||||
|
@ -220,6 +219,5 @@ debug_enable=true;
|
||||||
// prevent RGB light overrides layer indicator.
|
// prevent RGB light overrides layer indicator.
|
||||||
layer_state_set(default_layer_state);
|
layer_state_set(default_layer_state);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,10 +16,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef RGB_DI_PIN
|
|
||||||
#undef RGBLED_NUM
|
#undef RGBLED_NUM
|
||||||
#define RGBLED_NUM 17 // Layer Indicator(2) + Rotary Encoder(5) + Optional(2) + Under(8)
|
#define RGBLED_NUM 17 // Layer Indicator(2) + Rotary Encoder(5) + Optional(2) + Under(8)
|
||||||
|
|
||||||
#undef RGBLIGHT_LED_MAP
|
#undef RGBLIGHT_LED_MAP
|
||||||
#define RGBLIGHT_LED_MAP {2, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16} // Left to Right to Under
|
#define RGBLIGHT_LED_MAP {2, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16} // Left to Right to Under
|
||||||
#endif
|
|
||||||
|
|
|
@ -128,10 +128,8 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
Post Initialize
|
Post Initialize
|
||||||
------------------------------------------------------------------------------ */
|
------------------------------------------------------------------------------ */
|
||||||
void keyboard_post_init_user(void) {
|
void keyboard_post_init_user(void) {
|
||||||
#ifdef RGB_DI_PIN
|
|
||||||
// RGB Lighting: Set effect range from just after indicator.
|
// RGB Lighting: Set effect range from just after indicator.
|
||||||
rgblight_set_effect_range(1, 16);
|
rgblight_set_effect_range(1, 16);
|
||||||
#endif
|
|
||||||
#ifdef RGBLIGHT_LAYERS
|
#ifdef RGBLIGHT_LAYERS
|
||||||
// RGB Lighting Layers: Setup LED layers
|
// RGB Lighting Layers: Setup LED layers
|
||||||
rgblight_layers = my_rgb_layers;
|
rgblight_layers = my_rgb_layers;
|
||||||
|
|
|
@ -17,9 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef RGB_DI_PIN
|
|
||||||
|
|
||||||
#define RGBLIGHT_LAYERS
|
#define RGBLIGHT_LAYERS
|
||||||
#define RGBLIGHT_MAX_LAYERS 6
|
#define RGBLIGHT_MAX_LAYERS 6
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue