aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ergodox_ez/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ergodox_ez/matrix.c')
-rw-r--r--keyboards/ergodox_ez/matrix.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/matrix.c b/keyboards/ergodox_ez/matrix.c
index 685ce5009..c091b6eb9 100644
--- a/keyboards/ergodox_ez/matrix.c
+++ b/keyboards/ergodox_ez/matrix.c
@@ -237,3 +237,18 @@ static void select_row(uint8_t row) {
237 } 237 }
238 } 238 }
239} 239}
240
241// DO NOT REMOVE
242// Needed for proper wake/sleep
243void matrix_power_up(void) {
244 mcp23018_status = init_mcp23018();
245
246 unselect_rows();
247 init_cols();
248
249 // initialize matrix state: all keys off
250 for (uint8_t i=0; i < MATRIX_ROWS; i++) {
251 matrix[i] = 0;
252 }
253
254}