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

Expose rgb_matrix_update_pwm_buffers to be available in keymaps #24573

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

ericvw
Copy link
Contributor

@ericvw ericvw commented Nov 6, 2024

Exposing this API enables the examples in the keyboard shutdown/reboot documentation to compile instead of calling rgb_matrix_driver.flush directly.

Types of Changes

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

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • 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).

Exposing this API enables the examples in the keyboard shutdown/reboot
documentation to compile instead of calling `rgb_matrix_driver.flush`
directly.
@github-actions github-actions bot added the core label Nov 6, 2024
@waffle87 waffle87 changed the base branch from master to develop November 7, 2024 16:50
Copy link
Member

@waffle87 waffle87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're also welcome to remove the existing prototypes that keyboards using this function have:
keyboards/bastardkb/dilemma/dilemma.c
keyboards/bastardkb/charybdis/charybdis.c
keyboards/miiiw/blackio83/rev_0100/rev_0100.c

@waffle87 waffle87 requested a review from a team November 7, 2024 16:56
@ericvw
Copy link
Contributor Author

ericvw commented Nov 7, 2024

Great suggestion. I'll be able to update the PR this weekend and will remove the extraneous prototypes.

Now that `rgb_matrix_update_pwm_buffers` is public, there isn't the need
for local prototype declarations.
@ericvw
Copy link
Contributor Author

ericvw commented Nov 7, 2024

Great suggestion. I'll be able to update the PR this weekend and will remove the extraneous prototypes.

@waffle87, I got around to removing the extraneous local prototype declarations. The PR has been updated.

@waffle87
Copy link
Member

waffle87 commented Nov 8, 2024

LGTM, just waiting on another review.

@waffle87 waffle87 merged commit 9523ed9 into qmk:develop Nov 8, 2024
5 checks passed
@ericvw ericvw deleted the rgb-matrix-update-pwm-buffers-public branch November 20, 2024 00:25
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.

3 participants