Skip to content

Commit

Permalink
framework: Update debug to print voltage
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Aug 22, 2023
1 parent 89be4f3 commit d4af07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions keyboards/framework/laptop16/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ static bool interpret_adc_row(matrix_row_t cur_matrix[], adc10ksample_t voltage,
}
changed = cur_matrix[row] != new_row;
if (key_state) {
uprintf("old row: %d\n", cur_matrix[row]);
uprintf("new row: %d\n", new_row);
uprintf("Keypress at KSO%d, KSI%d - %d.%dV\n", col, row, voltage/10000, voltage%10000);
}
cur_matrix[row] = new_row;

Expand Down
2 changes: 1 addition & 1 deletion keyboards/framework/laptop16/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BACKLIGHT_DRIVER = pwm

# Custom matrix scanning code via ADC
CUSTOM_MATRIX = lite
SRC += matrix.c analog.c
SRC += matrix.c framework.c analog.c

SRC += dyn_serial.c factory.c

Expand Down

0 comments on commit d4af07b

Please sign in to comment.