diff options
author | Albert Y <76888457+filterpaper@users.noreply.github.com> | 2022-04-17 02:34:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 11:34:07 -0700 |
commit | e5918cf968f3e2c4a62858ee789748443ba58d10 (patch) | |
tree | 5b1280e32b1a7274eaa4f95e673b805ae91ebd2f /quantum | |
parent | 030a96a3f542db7434582d7887c4caafa8756203 (diff) |
Heatmap incorrect matrix effect workaround (#16315)
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/rgb_matrix/animations/typing_heatmap_anim.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/quantum/rgb_matrix/animations/typing_heatmap_anim.h b/quantum/rgb_matrix/animations/typing_heatmap_anim.h index f3a94280c0..4b17c4c3ed 100644 --- a/quantum/rgb_matrix/animations/typing_heatmap_anim.h +++ b/quantum/rgb_matrix/animations/typing_heatmap_anim.h @@ -7,6 +7,10 @@ RGB_MATRIX_EFFECT(TYPING_HEATMAP) # endif void process_rgb_matrix_typing_heatmap(uint8_t row, uint8_t col) { +# ifdef RGB_MATRIX_TYPING_HEATMAP_SLIM + // Limit effect to pressed keys + g_rgb_frame_buffer[row][col] = qadd8(g_rgb_frame_buffer[row][col], 32); +# else uint8_t m_row = row - 1; uint8_t p_row = row + 1; uint8_t m_col = col - 1; @@ -27,6 +31,7 @@ void process_rgb_matrix_typing_heatmap(uint8_t row, uint8_t col) { g_rgb_frame_buffer[m_row][col] = qadd8(g_rgb_frame_buffer[m_row][col], 16); if (p_col < MATRIX_COLS) g_rgb_frame_buffer[m_row][p_col] = qadd8(g_rgb_frame_buffer[m_row][p_col], 13); } +# endif } // A timer to track the last time we decremented all heatmap values. |