Add per-key backlight off support and fix scroll lock indicator - #472
Add per-key backlight off support and fix scroll lock indicator#472Lord-Memester wants to merge 11 commits into
Conversation
Also notable:In the main.js for the keychron web configurator tool, line 91171 is as follows: return [w.r, w.g, w.b].some(m => m > 30) || (w[b] = Math.max(30, w[b])),and performing a local override with the following minor change to that same line return [w.r, w.g, w.b].some(m => m > 30) || (w[b] = Math.max(0, w[b])),allows users to set hex #000000 for keys, which is what is required to disable them per-key. |
| hsv.v = rgb_matrix_config.hsv.v; | ||
| // If per-key brightness is 0, keep it off (don't apply global brightness) | ||
| // Otherwise, apply global brightness | ||
| if (per_key_led[i].v > 0) { |
There was a problem hiding this comment.
The Apply Global Brightness screws with per-key color values as is, I would recommend either just doing away with the global V entirely in per key mode or multiplying the key specific V by the global V.
|
Thank you! Could someone from the official Keychron team please merge this? |
cyatarow
left a comment
There was a problem hiding this comment.
Thank you for removing the restriction
|
I made a merge request that fixes the per-key backlight brightness correctly by scaling the per-key value by global brightness, not just allowing full bright vs. off. This allows for proper RGB to HSV conversion for externally driven effects as well as dimmed values from Keychron Launcher, which the implementation provided in this MR does not properly handle. See my MR here #492 |
I'm too busy to do a check of my own at the moment, but if your changes don't break any of my changes and do satisfy the requests of others who have commented on this PR, I'll merge your changes into mine. Would that be acceptable? |
Description
Added support for turning backlight off per-key.
Fixed typos.
Fixed implementation of scroll lock indicator.
Types of Changes
Issues Fixed or Closed by This PR
Checklist