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

(Re)Fixing K-type RGB lighting #12084

Merged
merged 13 commits into from
Mar 25, 2021
Merged

(Re)Fixing K-type RGB lighting #12084

merged 13 commits into from
Mar 25, 2021

Conversation

Andrew-Fahmy
Copy link

More fixes to the K-type RGB driver so that it doesn't break master

Description

This PR is a follow up to #11551
I have made some changes that (hopefully) fix the issues when it was initially merged into master. The problem seemed to be because I had some missing check to see if the RGB matrix was enabled or not.

@fauxpark also mentioned that some of these changes should be integrated into core. Currently there is a lot of code that relies on the i2c_master, so I am not exactly sure how it could be integrated.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (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).

@tzarc
Copy link
Member

tzarc commented Mar 2, 2021

@fauxpark also mentioned that some of these changes should be integrated into core. Currently there is a lot of code that relies on the i2c_master, so I am not exactly sure how it could be integrated.

He did... it's on my to-do list on a more general level -- multi-instance I2C and SPI are part of the plan. I think he was hoping we could just get yours in, but sadly it's not that simple! For now, I'd just disregard that request -- once your implementation is proven we can use it as prior art.

@tzarc tzarc requested a review from a team March 2, 2021 20:10
keyboards/k_type/i2c_master.c Outdated Show resolved Hide resolved
keyboards/k_type/is31fl3733.c Outdated Show resolved Hide resolved
keyboards/k_type/k_type.c Outdated Show resolved Hide resolved
keyboards/k_type/led.c Outdated Show resolved Hide resolved
keyboards/k_type/led.c Outdated Show resolved Hide resolved
keyboards/k_type/is31fl3733.c Outdated Show resolved Hide resolved
@drashna drashna requested review from drashna and a team March 3, 2021 02:56
@gogades
Copy link

gogades commented Mar 3, 2021

FYI, I Have tested this PR on my k-type and it works great !

@fauxpark fauxpark requested review from tzarc and a team March 25, 2021 07:04
@tzarc tzarc merged commit 1fbee7c into qmk:master Mar 25, 2021
mrlinuxfish pushed a commit to mrlinuxfish/qmk_firmware that referenced this pull request Mar 28, 2021
* initial rgb driver fix

* added underglow LEDs and fixed typo in RGB locations

* removed test code

* added my key maps

* updated rgb keymap to work with changes

* refactored my code to make it more maintainable and updated keymaps.

* added GPL licence

* Turned off matrix scan rate debug info

* added checks if RGB matrix is enabled to fix errors when building keymaps without RGB matrix enabled

* Apply suggestions from code review by fauxpark

Co-authored-by: Ryan <fauxpark@gmail.com>

* Renamed led driver file to be less ambiguous

* Renamed is31fl3733 driver files to is31fl3733-dual

Co-authored-by: Ryan <fauxpark@gmail.com>
mrtnee pushed a commit to mrtnee/qmk_firmware that referenced this pull request Nov 20, 2021
* initial rgb driver fix

* added underglow LEDs and fixed typo in RGB locations

* removed test code

* added my key maps

* updated rgb keymap to work with changes

* refactored my code to make it more maintainable and updated keymaps.

* added GPL licence

* Turned off matrix scan rate debug info

* added checks if RGB matrix is enabled to fix errors when building keymaps without RGB matrix enabled

* Apply suggestions from code review by fauxpark

Co-authored-by: Ryan <fauxpark@gmail.com>

* Renamed led driver file to be less ambiguous

* Renamed is31fl3733 driver files to is31fl3733-dual

Co-authored-by: Ryan <fauxpark@gmail.com>
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.

5 participants