-
-
Notifications
You must be signed in to change notification settings - Fork 39.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update quantum/template/avr/config.h #8688
Conversation
Modify the template of config.h according to drashna's recommendation. And I think the RGBLIGHT_ANIMATIONS is only for backwards compatibility. I think its use should be deprecated. So I removed it. see qmk#8670 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The LTO block should also use proper formatting.
Has there been discussion to deprecation of |
I didn't change it to avoid conflicting with #8663. |
I wanted to discuss that here, so I made this change. When I made rgblight.c configurable (#3582), RGBLIGHT_ANIMATIONS was referenced in several source files under Later, due to refactoring by you and others, RGBLIGHT_ANIMATIONS is no longer referenced under Currently, RGBLIGHT_ANIMATIONS is only there to ensure backward compatibility for keymap users. Of course, this compatibility should be maintained in the future. But with the new keyboard, I think it's better not to use RGBLIGHT_ANIMATIONS, but to choose the effect you want to use explicitly. So I propose to remove it from the template. If, after discussion, we come to the conclusion that we want to keep RGBLIGHT_ANIMATIONS, I will add it again to the template. |
If someone adds a new effect to rgblight.c in the future, it will automatically increase the firmware size of the keyboard using RGBLIGHT_ANIMATIONS. Is this an acceptable thing to do? So, I don't think RGBLIGHT_ANIMATIONS should be used on new keyboards. And when you add a new effect, you shouldn't include it in RGBLIGHT_ANIMATIONS. |
So I agree we have space limitations on AVR boards, and that factors partially into the decision. However for end users, having |
This PR template has all RGBlight effects enabled. It's easy for users to see which one they like. I think the reasons you gave are irrelevant to the question of whether or not to leave RGBLIGHT_ANIMATIONS in the template. And with RGBLIGHT_ANIMATIONS, you'll be affected when RGBlight effects are added in the future, as mentioned above. When a user brings qmk_fiermware up to date, it may fail to compile due to an unexpected increase in firmware size. Therefore, it is better not to use RGBLIGHT_ANIMATIONS on new keyboards to avoid that risk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree that they are irrelevant, and would put forward that your case is weak for the justification for removal.
While I haven't requested any changes, this is me formally flagging that I disagree with the proposed direction. And suggest we get other collabs to sign off so it has a net approval of at least +1.
Looks like the "backward compatibility" notice was added in #7773? |
Which notice are you referring to? |
Ah, never mind, it came from rgblight_reconfig.h in 3582. |
Thank you for your contribution! |
Thank you for your contribution! |
I'm against using RGBLIGHT_ANIMATIONS because this happens. See also qmk#8688.
Description
Modify the template of config.h according to drashna's recommendation. And I think the RGBLIGHT_ANIMATIONS is only for backwards compatibility. I think its use should be deprecated. So I removed it.
see #8670 (comment)
Types of Changes
Checklist