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

[Bug] RGB_MATRIX_TYPING_HEATMAP lights up wrong keys #14041

Closed
Lilalas opened this issue Aug 17, 2021 · 2 comments
Closed

[Bug] RGB_MATRIX_TYPING_HEATMAP lights up wrong keys #14041

Lilalas opened this issue Aug 17, 2021 · 2 comments

Comments

@Lilalas
Copy link

Lilalas commented Aug 17, 2021

Describe the Bug

According to the documentation, the heatmap RGB matrix effect should normally light up a key and its neighboring keys when pressed. (I don’t understand why it’s designed to also light up neighboring keys in the first place, but that’s not the point of this issue.) The problem is that for quite a number of keys, it will not light up the neighboring keys, but a few keys on the opposite side of the board instead – I does this in a consistent manner, but I cannot see a pattern.

I have found buggy keys like this in every row except the home row. For example the Y key will light up Y, U, H and J as expected (using a standard QWERTY layout here), but then also the first and second key in the bottom row (instead of T and G). I could post more detailed information regarding the other keys if needed, but about a third or so of the keys behave weird like this.

System Information

  • Keyboard: Planck EZ
  • Operating system: Ubuntu 20.04.2 LTS
  • AVR GCC version: avr-gcc (GCC) 5.4.0
  • ARM GCC version: arm-none-eabi-gcc (15:9-2019-q4-0ubuntu1) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
  • QMK Firmware version: 0.13.33

Additional Context

Is this a known issue? Does it also affect other boards? I know it affected me ever since I go the keyboard a few years ago, but I couldn’t find other people mentioning this issue online.

I personally don’t really care so much if this will be fixed or not, because I usually don’t use the heatmap effect. (Maybe I will after it gets fixed, who knows.) Unfortunately I don’t know how to fix this myself, as I have only ever used the predefined lighting effects and haven’t looked into how individual LEDs are addressed by the firmware.

@drashna
Copy link
Member

drashna commented Aug 17, 2021

It's a known issue, with how the switch matrix is laid out and how the rgb matrix handles it.

No fix for it, yet.

@filterpaper
Copy link
Contributor

The heatmap effect light up neighboring keys using simple MATRIX_ROWS x/y parameter, assuming a horizontal rectangle keyboard matrix:
https://github.com/qmk/qmk_firmware/blob/master/quantum/rgb_matrix/animations/typing_heatmap_anim.h#L10-L13

Key matrix on Planck EZ and most split keyboards are not simple rectangles but halved rows on top of the other:
https://github.com/qmk/qmk_firmware/blob/master/keyboards/planck/ez/ez.c#L89-L96

This is a known limitation on how that effect is coded. "Fixing" this will require someone to rework the maths in the heatmap effect to use physical 224 x 64 LED location values.

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

No branches or pull requests

3 participants