Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

mtei
Copy link
Contributor

@mtei mtei commented Apr 5, 2020

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

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

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)
@mtei mtei requested review from fauxpark, noroadsleft, drashna and a team April 5, 2020 14:06
@mtei mtei mentioned this pull request Apr 5, 2020
13 tasks
Copy link
Member

@fauxpark fauxpark left a 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.

@zvecr
Copy link
Member

zvecr commented Apr 5, 2020

Has there been discussion to deprecation of RGBLIGHT_ANIMATIONS? Given it also functions as "give me all available animations", i'm not sure its only for backwards compatibility.

@mtei
Copy link
Contributor Author

mtei commented Apr 5, 2020

The LTO block should also use proper formatting.

I didn't change it to avoid conflicting with #8663.

@mtei
Copy link
Contributor Author

mtei commented Apr 5, 2020

Has there been discussion to deprecation of RGBLIGHT_ANIMATIONS?

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 quantum/ and tmk_core/, so I didn't remove it for fear of negative consequences.

Later, due to refactoring by you and others, RGBLIGHT_ANIMATIONS is no longer referenced under quantum/ and tmk_core/.

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.

@mtei
Copy link
Contributor Author

mtei commented Apr 8, 2020

Given it also functions as "give me all available animations", i'm not sure its only for backwards compatibility.

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?
Is adding a new effect a breaking change?

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.

@zvecr
Copy link
Member

zvecr commented Apr 8, 2020

So I agree we have space limitations on AVR boards, and that factors partially into the decision.

However for end users, having RGB_MOD cycle through everything we have is far more useful that having to enable each one, potentially in turn, to see which one you like. I would say disabling other features like console is a worthwhile trade off to the increase in firmware space due to animations.

@mtei
Copy link
Contributor Author

mtei commented Apr 11, 2020

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.

Copy link
Member

@zvecr zvecr left a 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.

@mtei mtei requested a review from a team April 11, 2020 17:44
@zvecr zvecr requested review from drashna and fauxpark April 14, 2020 12:01
@mtei mtei requested a review from a team April 19, 2020 17:35
@fauxpark
Copy link
Member

Looks like the "backward compatibility" notice was added in #7773?

@mtei
Copy link
Contributor Author

mtei commented Apr 19, 2020

Looks like the "backward compatibility" notice was added in #7773?

Which notice are you referring to?

@fauxpark
Copy link
Member

Ah, never mind, it came from rgblight_reconfig.h in 3582.

@drashna drashna requested a review from a team April 28, 2020 09:12
@stale
Copy link

stale bot commented Jun 12, 2020

Thank you for your contribution!
This pull request has been automatically marked as stale because it has not had activity in the last 45 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, or re-open when it's ready.
For maintainers: Please label with awaiting review, breaking_change, in progress, or on hold to prevent the issue from being re-flagged.

@stale
Copy link

stale bot commented Jul 12, 2020

Thank you for your contribution!
This pull request has been automatically closed because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, or re-open when it's ready.

@stale stale bot closed this Jul 12, 2020
@mtei mtei deleted the update_tamplate_avr_config.h branch September 7, 2020 05:28
mtei added a commit to mtei/qmk_firmware that referenced this pull request Aug 18, 2021
I'm against using RGBLIGHT_ANIMATIONS because this happens.
See also qmk#8688.
mtei added a commit that referenced this pull request Aug 19, 2021
I'm against using RGBLIGHT_ANIMATIONS because this happens.
See also #8688.
nhongooi pushed a commit to nhongooi/qmk_firmware that referenced this pull request Dec 5, 2021
…14061)

I'm against using RGBLIGHT_ANIMATIONS because this happens.
See also qmk#8688.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants