aboutsummaryrefslogtreecommitdiff
path: root/keyboard/hhkb/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/hhkb/matrix.c')
-rw-r--r--keyboard/hhkb/matrix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/keyboard/hhkb/matrix.c b/keyboard/hhkb/matrix.c
index 14fae0b82..2dfb2f5e1 100644
--- a/keyboard/hhkb/matrix.c
+++ b/keyboard/hhkb/matrix.c
@@ -188,6 +188,14 @@ void matrix_print(void)
188 } 188 }
189} 189}
190 190
191uint8_t matrix_key_count(void) {
192 uint8_t count = 0;
193 for (int8_t r = MATRIX_ROWS - 1; r >= 0; --r) {
194 count += bitpop16(matrix_get_row(r));
195 }
196 return count;
197}
198
191void matrix_power_up(void) { 199void matrix_power_up(void) {
192 KEY_POWER_ON(); 200 KEY_POWER_ON();
193} 201}