1
0
Fork 0

Remove RGB_DI_PIN ifdefs (#20218)

This commit is contained in:
Ryan 2023-03-23 21:38:01 +11:00 committed by GitHub
parent b72b487b4d
commit ad625e7c06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
506 changed files with 18 additions and 1594 deletions

View file

@ -16,10 +16,8 @@
#pragma once
#ifdef RGB_DI_PIN
#undef RGBLED_NUM
#define RGBLED_NUM 17 // Layer Indicator(2) + Rotary Encoder(5) + Optional(2) + Under(8)
#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
#endif

View file

@ -128,10 +128,8 @@ layer_state_t layer_state_set_user(layer_state_t state) {
Post Initialize
------------------------------------------------------------------------------ */
void keyboard_post_init_user(void) {
#ifdef RGB_DI_PIN
// RGB Lighting: Set effect range from just after indicator.
rgblight_set_effect_range(1, 16);
#endif
#ifdef RGBLIGHT_LAYERS
// RGB Lighting Layers: Setup LED layers
rgblight_layers = my_rgb_layers;