Browse Source

Update Phantom debug print

This updates the Phantom project to use the new debug print functions.
led_matrix
Mathias Andersson 11 years ago
parent
commit
5c5312c508
2 changed files with 2 additions and 5 deletions
  1. 0
    1
      keyboard/phantom/keymap.c
  2. 2
    4
      keyboard/phantom/matrix.c

+ 0
- 1
keyboard/phantom/keymap.c View File

#include "action_macro.h" #include "action_macro.h"
#include "report.h" #include "report.h"
#include "host.h" #include "host.h"
#include "print.h"
#include "debug.h" #include "debug.h"
#include "keymap.h" #include "keymap.h"



+ 2
- 4
keyboard/phantom/matrix.c View File

if (prev_bit != curr_bit) { if (prev_bit != curr_bit) {
matrix_debouncing[row] ^= ((matrix_row_t)1<<col); matrix_debouncing[row] ^= ((matrix_row_t)1<<col);
if (debouncing) { if (debouncing) {
debug("bounce!: "); debug_hex(debouncing); print("\n");
dprint("bounce!: "); dprintf("%02X", debouncing); dprintln();
} }
debouncing = DEBOUNCE; debouncing = DEBOUNCE;
} }
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": ");
print_bin_reverse32(matrix_get_row(row));
print("\n");
xprintf("%02X: %032lb\n", row, bitrev32(matrix_get_row(row)));
} }
} }