diff options
Diffstat (limited to 'keyboards/terrazzo/terrazzo_effects/wpm_chart.h')
-rw-r--r-- | keyboards/terrazzo/terrazzo_effects/wpm_chart.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/terrazzo/terrazzo_effects/wpm_chart.h b/keyboards/terrazzo/terrazzo_effects/wpm_chart.h index 5c66bc39a..b80b604d2 100644 --- a/keyboards/terrazzo/terrazzo_effects/wpm_chart.h +++ b/keyboards/terrazzo/terrazzo_effects/wpm_chart.h | |||
@@ -85,14 +85,14 @@ static uint8_t number_3_4[10][12] = { | |||
85 | uint8_t wpm_levels[10] = {20, 9, 8, 7, 6, 5, 4, 3, 2, 1}; | 85 | uint8_t wpm_levels[10] = {20, 9, 8, 7, 6, 5, 4, 3, 2, 1}; |
86 | 86 | ||
87 | void WPM_CHART(uint8_t i, bool dir) { | 87 | void WPM_CHART(uint8_t i, bool dir) { |
88 | led_matrix_set_index_value_all(0); | 88 | led_matrix_set_value_all(0); |
89 | uint8_t c_wpm = get_current_wpm(); | 89 | uint8_t c_wpm = get_current_wpm(); |
90 | uint8_t half_wpm = floor(c_wpm / 2); | 90 | uint8_t half_wpm = floor(c_wpm / 2); |
91 | uint8_t max_rows = 10; | 91 | uint8_t max_rows = 10; |
92 | /* Turn on LED for current WPM. Each pixel is 2 wpm. */ | 92 | /* Turn on LED for current WPM. Each pixel is 2 wpm. */ |
93 | for (int k = 0; k < half_wpm && k < 70; k++) { | 93 | for (int k = 0; k < half_wpm && k < 70; k++) { |
94 | uint8_t current_row = (int)floor(k / 7); | 94 | uint8_t current_row = (int)floor(k / 7); |
95 | led_matrix_set_index_value(k, wpm_levels[max_rows - current_row]); | 95 | led_matrix_set_value(k, wpm_levels[max_rows - current_row]); |
96 | }; | 96 | }; |
97 | uint8_t d1 = (int)floor(c_wpm / 10); | 97 | uint8_t d1 = (int)floor(c_wpm / 10); |
98 | /* There is only room to print 2 digits. If the WPM is greater than | 98 | /* There is only room to print 2 digits. If the WPM is greater than |