summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--keyboards/40percentclub/ut47/matrix.c4
-rw-r--r--keyboards/ai03/orbit/matrix.c2
-rw-r--r--keyboards/amj96/matrix.c4
-rw-r--r--keyboards/angel64/alpha/matrix.c2
-rw-r--r--keyboards/angel64/rev1/matrix.c2
-rw-r--r--keyboards/bpiphany/pegasushoof/2013/matrix.c4
-rw-r--r--keyboards/bpiphany/pegasushoof/2015/matrix.c4
-rw-r--r--keyboards/centromere/matrix.c2
-rw-r--r--keyboards/chimera_ergo/matrix.c2
-rw-r--r--keyboards/chimera_ls/matrix.c2
-rw-r--r--keyboards/chimera_ortho/matrix.c2
-rw-r--r--keyboards/chimera_ortho_plus/matrix.c2
-rw-r--r--keyboards/comet46/matrix.c2
-rw-r--r--keyboards/converter/adb_usb/matrix.c6
-rw-r--r--keyboards/converter/hp_46010a/matrix.c2
-rw-r--r--keyboards/converter/ibm_5291/matrix.c2
-rw-r--r--keyboards/converter/m0110_usb/matrix.c2
-rw-r--r--keyboards/converter/palm_usb/matrix.c4
-rw-r--r--keyboards/converter/sun_usb/matrix.c4
-rw-r--r--keyboards/converter/xt_usb/matrix.c2
-rw-r--r--keyboards/crkbd/rev1/legacy/matrix.c4
-rw-r--r--keyboards/dc01/arrow/matrix.c2
-rw-r--r--keyboards/dc01/left/matrix.c2
-rw-r--r--keyboards/dc01/numpad/matrix.c2
-rw-r--r--keyboards/dc01/right/matrix.c2
-rwxr-xr-xkeyboards/dichotomy/matrix.c2
-rw-r--r--keyboards/dm9records/ergoinu/matrix.c4
-rw-r--r--keyboards/ergodone/matrix.c4
-rw-r--r--keyboards/ergotaco/matrix.c4
-rw-r--r--keyboards/georgi/matrix.c4
-rw-r--r--keyboards/gergo/matrix.c4
-rw-r--r--keyboards/handwired/dactyl/matrix.c4
-rw-r--r--keyboards/handwired/datahand/matrix.c2
-rw-r--r--keyboards/handwired/frenchdev/matrix.c4
-rw-r--r--keyboards/handwired/not_so_minidox/matrix.c4
-rw-r--r--keyboards/handwired/owlet60/matrix.c2
-rw-r--r--keyboards/handwired/promethium/matrix.c2
-rw-r--r--keyboards/handwired/pterodactyl/matrix.c4
-rw-r--r--keyboards/helix/pico/matrix.c4
-rw-r--r--keyboards/helix/rev1/matrix.c4
-rw-r--r--keyboards/helix/rev2/matrix.c4
-rwxr-xr-xkeyboards/hid_liber/matrix.c4
-rwxr-xr-xkeyboards/honeycomb/matrix.c2
-rw-r--r--keyboards/hotdox/matrix.c4
-rw-r--r--keyboards/keyboardio/model01/matrix.c4
-rw-r--r--keyboards/kinesis/alvicstep/matrix.c4
-rw-r--r--keyboards/kmac/matrix.c2
-rwxr-xr-xkeyboards/kmini/matrix.c2
-rwxr-xr-xkeyboards/lily58/rev1/matrix.c4
-rw-r--r--keyboards/meira/matrix.c4
-rw-r--r--keyboards/mitosis/matrix.c2
-rw-r--r--keyboards/moon/matrix.c2
-rw-r--r--keyboards/mschwingen/modelm/matrix.c2
-rw-r--r--keyboards/nek_type_a/matrix.c2
-rw-r--r--keyboards/redox_w/matrix.c2
-rwxr-xr-xkeyboards/redscarf_iiplus/verb/matrix.c2
-rwxr-xr-xkeyboards/redscarf_iiplus/verc/matrix.c2
-rw-r--r--keyboards/redscarf_iiplus/verd/matrix.c2
-rw-r--r--keyboards/sirius/uni660/rev1/matrix.c2
-rw-r--r--keyboards/sirius/uni660/rev2/matrix.c2
-rw-r--r--keyboards/sx60/matrix.c2
-rw-r--r--keyboards/telophase/matrix.c2
-rw-r--r--keyboards/thedogkeyboard/matrix.c2
-rw-r--r--keyboards/ymdk/sp64/matrix.c4
-rw-r--r--keyboards/yosino58/rev1/matrix.c4
-rw-r--r--quantum/matrix_common.c2
-rw-r--r--tmk_core/common/command.c12
-rw-r--r--tmk_core/common/mousekey.c2
-rw-r--r--tmk_core/common/print.h10
-rw-r--r--tmk_core/protocol/m0110.c8
-rw-r--r--tmk_core/protocol/ps2_mouse.c2
71 files changed, 107 insertions, 117 deletions
diff --git a/keyboards/40percentclub/ut47/matrix.c b/keyboards/40percentclub/ut47/matrix.c
index 921bc9ed5e..e47c7f8e13 100644
--- a/keyboards/40percentclub/ut47/matrix.c
+++ b/keyboards/40percentclub/ut47/matrix.c
@@ -126,8 +126,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/ai03/orbit/matrix.c b/keyboards/ai03/orbit/matrix.c
index a1509666cd..b8e3296686 100644
--- a/keyboards/ai03/orbit/matrix.c
+++ b/keyboards/ai03/orbit/matrix.c
@@ -96,7 +96,7 @@ void matrix_print(void) {
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row);
+ print_hex8(row);
print(": ");
print_matrix_row(row);
print("\n");
diff --git a/keyboards/amj96/matrix.c b/keyboards/amj96/matrix.c
index 5d00ea98f5..8e7bbaa791 100644
--- a/keyboards/amj96/matrix.c
+++ b/keyboards/amj96/matrix.c
@@ -130,8 +130,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/angel64/alpha/matrix.c b/keyboards/angel64/alpha/matrix.c
index e06fc15dc4..474fbec030 100644
--- a/keyboards/angel64/alpha/matrix.c
+++ b/keyboards/angel64/alpha/matrix.c
@@ -120,7 +120,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/angel64/rev1/matrix.c b/keyboards/angel64/rev1/matrix.c
index e06fc15dc4..474fbec030 100644
--- a/keyboards/angel64/rev1/matrix.c
+++ b/keyboards/angel64/rev1/matrix.c
@@ -120,7 +120,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/bpiphany/pegasushoof/2013/matrix.c b/keyboards/bpiphany/pegasushoof/2013/matrix.c
index a670d53823..037f323c00 100644
--- a/keyboards/bpiphany/pegasushoof/2013/matrix.c
+++ b/keyboards/bpiphany/pegasushoof/2013/matrix.c
@@ -133,8 +133,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/bpiphany/pegasushoof/2015/matrix.c b/keyboards/bpiphany/pegasushoof/2015/matrix.c
index db03993544..42c5da3bc5 100644
--- a/keyboards/bpiphany/pegasushoof/2015/matrix.c
+++ b/keyboards/bpiphany/pegasushoof/2015/matrix.c
@@ -93,8 +93,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < matrix_rows(); row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/centromere/matrix.c b/keyboards/centromere/matrix.c
index 5ca083b435..7256cd5cb5 100644
--- a/keyboards/centromere/matrix.c
+++ b/keyboards/centromere/matrix.c
@@ -137,7 +137,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/chimera_ergo/matrix.c b/keyboards/chimera_ergo/matrix.c
index 112b9a40d1..577176c466 100644
--- a/keyboards/chimera_ergo/matrix.c
+++ b/keyboards/chimera_ergo/matrix.c
@@ -148,7 +148,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/chimera_ls/matrix.c b/keyboards/chimera_ls/matrix.c
index 7208d971e1..9edd91818f 100644
--- a/keyboards/chimera_ls/matrix.c
+++ b/keyboards/chimera_ls/matrix.c
@@ -152,7 +152,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/chimera_ortho/matrix.c b/keyboards/chimera_ortho/matrix.c
index eb2f18473e..34930af7e2 100644
--- a/keyboards/chimera_ortho/matrix.c
+++ b/keyboards/chimera_ortho/matrix.c
@@ -138,7 +138,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/chimera_ortho_plus/matrix.c b/keyboards/chimera_ortho_plus/matrix.c
index 2bdc97991c..818e05ac98 100644
--- a/keyboards/chimera_ortho_plus/matrix.c
+++ b/keyboards/chimera_ortho_plus/matrix.c
@@ -138,7 +138,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/comet46/matrix.c b/keyboards/comet46/matrix.c
index eb2f18473e..34930af7e2 100644
--- a/keyboards/comet46/matrix.c
+++ b/keyboards/comet46/matrix.c
@@ -138,7 +138,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/converter/adb_usb/matrix.c b/keyboards/converter/adb_usb/matrix.c
index 4a70eb5021..9e5399de5d 100644
--- a/keyboards/converter/adb_usb/matrix.c
+++ b/keyboards/converter/adb_usb/matrix.c
@@ -129,8 +129,8 @@ void adb_mouse_task(void)
if (debug_mouse) {
print("adb_host_mouse_recv: "); print_bin16(codes); print("\n");
print("adb_mouse raw: [");
- phex(mouseacc); print(" ");
- phex(mouse_report.buttons); print("|");
+ print_hex8(mouseacc); print(" ");
+ print_hex8(mouse_report.buttons); print("|");
print_decs(mouse_report.x); print(" ");
print_decs(mouse_report.y); print("]\n");
}
@@ -173,7 +173,7 @@ uint8_t matrix_scan(void)
key1 = codes&0xFF;
if (debug_matrix && codes) {
- print("adb_host_kbd_recv: "); phex16(codes); print("\n");
+ print("adb_host_kbd_recv: "); print_hex16(codes); print("\n");
}
if (codes == 0) { // no keys
diff --git a/keyboards/converter/hp_46010a/matrix.c b/keyboards/converter/hp_46010a/matrix.c
index 72a098746c..03fcb2424f 100644
--- a/keyboards/converter/hp_46010a/matrix.c
+++ b/keyboards/converter/hp_46010a/matrix.c
@@ -220,7 +220,7 @@ void matrix_print(void)
print("\nr/c 01234567\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_bin_reverse8(matrix_get_row(row));
print("\n");
}
diff --git a/keyboards/converter/ibm_5291/matrix.c b/keyboards/converter/ibm_5291/matrix.c
index 8b2dba7ab6..3946d02e51 100644
--- a/keyboards/converter/ibm_5291/matrix.c
+++ b/keyboards/converter/ibm_5291/matrix.c
@@ -277,7 +277,7 @@ void matrix_print(void) {
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/converter/m0110_usb/matrix.c b/keyboards/converter/m0110_usb/matrix.c
index 098f9de0ff..daba7a138a 100644
--- a/keyboards/converter/m0110_usb/matrix.c
+++ b/keyboards/converter/m0110_usb/matrix.c
@@ -93,7 +93,7 @@ uint8_t matrix_scan(void)
}
if (debug_enable) {
- print("["); phex(key); print("]\n");
+ print("["); print_hex8(key); print("]\n");
}
matrix_scan_quantum();
diff --git a/keyboards/converter/palm_usb/matrix.c b/keyboards/converter/palm_usb/matrix.c
index 590b5eea32..289284b616 100644
--- a/keyboards/converter/palm_usb/matrix.c
+++ b/keyboards/converter/palm_usb/matrix.c
@@ -381,8 +381,8 @@ void matrix_print(void)
{
print("\nr/c 01234567\n");
for (uint8_t row = 0; row < matrix_rows(); row++) {
- phex(row); print(": ");
- pbin_reverse(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse8(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/converter/sun_usb/matrix.c b/keyboards/converter/sun_usb/matrix.c
index c379e8237c..21f45111ec 100644
--- a/keyboards/converter/sun_usb/matrix.c
+++ b/keyboards/converter/sun_usb/matrix.c
@@ -181,8 +181,8 @@ void matrix_print(void)
{
print("\nr/c 01234567\n");
for (uint8_t row = 0; row < matrix_rows(); row++) {
- phex(row); print(": ");
- pbin_reverse(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse8(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/converter/xt_usb/matrix.c b/keyboards/converter/xt_usb/matrix.c
index d48f1a887f..d75f077ce9 100644
--- a/keyboards/converter/xt_usb/matrix.c
+++ b/keyboards/converter/xt_usb/matrix.c
@@ -233,7 +233,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/crkbd/rev1/legacy/matrix.c b/keyboards/crkbd/rev1/legacy/matrix.c
index 8eb028137b..371b1913e1 100644
--- a/keyboards/crkbd/rev1/legacy/matrix.c
+++ b/keyboards/crkbd/rev1/legacy/matrix.c
@@ -350,8 +350,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/dc01/arrow/matrix.c b/keyboards/dc01/arrow/matrix.c
index 1823138c39..80fbbb1b04 100644
--- a/keyboards/dc01/arrow/matrix.c
+++ b/keyboards/dc01/arrow/matrix.c
@@ -238,7 +238,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c
index 0e7b591f82..41ecb8e178 100644
--- a/keyboards/dc01/left/matrix.c
+++ b/keyboards/dc01/left/matrix.c
@@ -278,7 +278,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/dc01/numpad/matrix.c b/keyboards/dc01/numpad/matrix.c
index f8b725adc2..1eba58cc7c 100644
--- a/keyboards/dc01/numpad/matrix.c
+++ b/keyboards/dc01/numpad/matrix.c
@@ -238,7 +238,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/dc01/right/matrix.c b/keyboards/dc01/right/matrix.c
index 6ec3a3b723..8338453430 100644
--- a/keyboards/dc01/right/matrix.c
+++ b/keyboards/dc01/right/matrix.c
@@ -238,7 +238,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/dichotomy/matrix.c b/keyboards/dichotomy/matrix.c
index 2400753cc1..ed83bd452c 100755
--- a/keyboards/dichotomy/matrix.c
+++ b/keyboards/dichotomy/matrix.c
@@ -210,7 +210,7 @@ void matrix_print(void)
print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
+ print_hex8(row); print(": ");
print_matrix_row(row);
print("\n");
}
diff --git a/keyboards/dm9records/ergoinu/matrix.c b/keyboards/dm9records/ergoinu/matrix.c
index 4a80cf9f24..b1c58f88fe 100644
--- a/keyboards/dm9records/ergoinu/matrix.c
+++ b/keyboards/dm9records/ergoinu/matrix.c
@@ -245,8 +245,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/ergodone/matrix.c b/keyboards/ergodone/matrix.c
index 456f73c954..3973ff3484 100644
--- a/keyboards/ergodone/matrix.c
+++ b/keyboards/ergodone/matrix.c
@@ -152,8 +152,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/ergotaco/matrix.c b/keyboards/ergotaco/matrix.c
index e28f754e67..e5af1c27fd 100644
--- a/keyboards/ergotaco/matrix.c
+++ b/keyboards/ergotaco/matrix.c
@@ -220,8 +220,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/georgi/matrix.c b/keyboards/georgi/matrix.c
index f0b69c841a..438412102b 100644
--- a/keyboards/georgi/matrix.c
+++ b/keyboards/georgi/matrix.c
@@ -241,8 +241,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/gergo/matrix.c b/keyboards/gergo/matrix.c
index 080eaea40f..655e729356 100644
--- a/keyboards/gergo/matrix.c
+++ b/keyboards/gergo/matrix.c
@@ -285,8 +285,8 @@ inline matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; }
void matrix_print(void) {
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- pbin_reverse16(matrix_get_row(row));
+ print_hex8(row); print(": ");
+ print_bin_reverse16(matrix_get_row(row));
print("\n");
}
}
diff --git a/keyboards/handwired/dactyl/matrix.c b/keyboards/handwired/dactyl/matrix.c
index faa5c19cf2..0f4f98ad8d 100644
--- a/keyboards/handwired/dactyl/matrix.c
+++ b/keyboards/handwired/dactyl/matrix.c
@@ -297,8 +297,8 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row