From b3f786711dea3da595d316b319e8ce45994c73b1 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Mon, 6 Feb 2023 11:08:02 +0800 Subject: [PATCH] lotus: Fix keyboard Signed-off-by: Daniel Schaefer --- keyboards/lotus/matrix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keyboards/lotus/matrix.c b/keyboards/lotus/matrix.c index 81695347a6..a315b966cd 100644 --- a/keyboards/lotus/matrix.c +++ b/keyboards/lotus/matrix.c @@ -505,7 +505,6 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) { drive_col(col, false); for (int row = 0; row < MATRIX_ROWS; row++) { // Debug for keyboard. Row 5 and 6 don't seem to work - if (row == 5 || row == 6) continue; //print("\n"); // Read ADC for this row mux_select_row(row); @@ -580,6 +579,10 @@ void matrix_init_custom(void) { setPinOutput(KSO14); setPinOutput(KSO15); + // Set unused pins to input to avoid interfering. They're hooked up to rows 5 and 6 + setPinInput(GP6); + setPinInput(GP7); + const ADCConfig adcConfig = { // Default clock divider .div_int = 0,