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

rgb_led struct conversion (aka: Per led (key) type rgb matrix effects - part 2) #5783

Merged

Conversation

XScorpion2
Copy link
Contributor

Description

Update of the rgb_led struct layout to a more efficient layout. This improves the key to led lookup complexity from O(n) to O(1), in addition, the usage of the data in the effects is simpler as it removes the need to hoist grabbing data from the struct to use in the effect and allows the compiler to optimize the loop easier.

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.
  • 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).

@XScorpion2 XScorpion2 changed the title Features/rgb led struct conversion rgb_led struct conversion (aka: Per led (key) type rgb matrix effects - part 2) May 4, 2019
quantum/rgb_matrix_types.h Outdated Show resolved Hide resolved
@XScorpion2 XScorpion2 mentioned this pull request May 4, 2019
13 tasks
Copy link
Contributor

@yanfali yanfali left a comment

Choose a reason for hiding this comment

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

One nit, otherwise lgtm

@drashna
Copy link
Member

drashna commented May 7, 2019

Merge conflicts, because my keymap PR got merged.

Copy link
Contributor

@mechmerlin mechmerlin left a comment

Choose a reason for hiding this comment

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

BOOM!

@mechmerlin mechmerlin merged commit af89752 into qmk:master May 7, 2019
@XScorpion2 XScorpion2 deleted the features/rgb_led_struct_conversion branch May 8, 2019 00:02
drashna pushed a commit to zsa/qmk_firmware that referenced this pull request May 8, 2019
… - part 2) (qmk#5783)

* Initial conversion of the rgb_led struct

* Converting last keyboard & updating effects to take advantage of the new structure

* New struct should not be const

* Updated docs

* Changing define ___ for no led to NO_LED

* Missed converting some keymap usages of the old struct layout
KauyonKais pushed a commit to KauyonKais/qmk_firmware that referenced this pull request May 8, 2019
… - part 2) (qmk#5783)

* Initial conversion of the rgb_led struct

* Converting last keyboard & updating effects to take advantage of the new structure

* New struct should not be const

* Updated docs

* Changing define ___ for no led to NO_LED

* Missed converting some keymap usages of the old struct layout
KauyonKais pushed a commit to KauyonKais/qmk_firmware that referenced this pull request May 8, 2019
… - part 2) (qmk#5783)

* Initial conversion of the rgb_led struct

* Converting last keyboard & updating effects to take advantage of the new structure

* New struct should not be const

* Updated docs

* Changing define ___ for no led to NO_LED

* Missed converting some keymap usages of the old struct layout
Timbus pushed a commit to Timbus/qmk_firmware that referenced this pull request Jun 23, 2019
… - part 2) (qmk#5783)

* Initial conversion of the rgb_led struct

* Converting last keyboard & updating effects to take advantage of the new structure

* New struct should not be const

* Updated docs

* Changing define ___ for no led to NO_LED

* Missed converting some keymap usages of the old struct layout
ridingqwerty pushed a commit to ridingqwerty/qmk_firmware that referenced this pull request Jan 10, 2020
… - part 2) (qmk#5783)

* Initial conversion of the rgb_led struct

* Converting last keyboard & updating effects to take advantage of the new structure

* New struct should not be const

* Updated docs

* Changing define ___ for no led to NO_LED

* Missed converting some keymap usages of the old struct layout
JeffreyPalmer pushed a commit to JeffreyPalmer/qmk_firmware that referenced this pull request Feb 27, 2020
… - part 2) (qmk#5783)

* Initial conversion of the rgb_led struct

* Converting last keyboard & updating effects to take advantage of the new structure

* New struct should not be const

* Updated docs

* Changing define ___ for no led to NO_LED

* Missed converting some keymap usages of the old struct layout
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
… - part 2) (qmk#5783)

* Initial conversion of the rgb_led struct

* Converting last keyboard & updating effects to take advantage of the new structure

* New struct should not be const

* Updated docs

* Changing define ___ for no led to NO_LED

* Missed converting some keymap usages of the old struct layout
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