Skip to content

Implement num lock light for Keychron V5#26019

Open
toast003 wants to merge 3 commits intoqmk:masterfrom
toast003:keychron-v5-num-lock-light
Open

Implement num lock light for Keychron V5#26019
toast003 wants to merge 3 commits intoqmk:masterfrom
toast003:keychron-v5-num-lock-light

Conversation

@toast003
Copy link

To make this work NUM_LOCK_LED_INDEX needs to be defined, I haven't done so in this PR since I'm not sure if it would be better to do it on a separate one

Description

This PR makes it so that the backlight for the num lock key turns white when num lock is active, just like caps lock.

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


#endif // DIP_SWITCH_ENABLE

#if defined(RGB_MATRIX_ENABLE) && defined(CAPS_LOCK_LED_INDEX)
Copy link
Member

Choose a reason for hiding this comment

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

Your PR will not function correctly as this line needs to be:

#if defined(RGB_MATRIX_ENABLE) && (defined(CAPS_LOCK_LED_INDEX) || defined(NUM_LOCK_LED_INDEX))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants