|
|
@ -566,14 +566,12 @@ void rgblight_effect_knight(uint8_t interval) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (RGBLIGHT_EFFECT_KNIGHT_OFFSET) {
|
|
|
|
|
|
|
|
for (i = 0; i < RGBLED_NUM; i++) {
|
|
|
|
for (i = 0; i < RGBLED_NUM; i++) {
|
|
|
|
cur = (i + RGBLIGHT_EFFECT_KNIGHT_OFFSET) % RGBLED_NUM;
|
|
|
|
cur = (i + RGBLIGHT_EFFECT_KNIGHT_OFFSET) % RGBLED_NUM;
|
|
|
|
led[i].r = preled[cur].r;
|
|
|
|
led[i].r = preled[cur].r;
|
|
|
|
led[i].g = preled[cur].g;
|
|
|
|
led[i].g = preled[cur].g;
|
|
|
|
led[i].b = preled[cur].b;
|
|
|
|
led[i].b = preled[cur].b;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
rgblight_set();
|
|
|
|
rgblight_set();
|
|
|
|
if (increment == 1) {
|
|
|
|
if (increment == 1) {
|
|
|
|
if (pos - 1 < 0 - RGBLIGHT_EFFECT_KNIGHT_LENGTH) {
|
|
|
|
if (pos - 1 < 0 - RGBLIGHT_EFFECT_KNIGHT_LENGTH) {
|
|
|
|