lotus: Remove debug

Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
Daniel Schaefer 2023-02-01 10:01:46 +08:00
parent d64874e00e
commit d45d9dc9f2

View File

@ -241,7 +241,7 @@ static void mux_select_row(int row) {
(index & 0x4) > 0
};
(void)bits;
uprintf("Mux A: %d, B: %d, C: %d, KSI%d, X%d\n", bits[0], bits[1], bits[2], row, index);
//uprintf("Mux A: %d, B: %d, C: %d, KSI%d, X%d\n", bits[0], bits[1], bits[2], row, index);
writePin(MUX_A, bits[0]);
writePin(MUX_B, bits[1]);
writePin(MUX_C, bits[2]);
@ -290,8 +290,8 @@ static bool interpret_adc_row(matrix_row_t cur_matrix[], adc10ksample_t voltage,
}
cur_matrix[row] = new_row;
// Return false to not send keys to the host
return false;
// Debug keyboard
//return false;
return changed;
}
#endif
@ -504,8 +504,8 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) {
// Drive column low so we can measure the resistors on each row in this column
drive_col(col, false);
for (int row = 0; row < MATRIX_ROWS; row++) {
// Focus on rows 5 and 6 to debug them
if (row != 5 && row != 6) continue;
// 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);