aboutsummaryrefslogtreecommitdiff
path: root/keyboards/touchpad
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-03-31 01:07:19 +1100
committerGitHub <[email protected]>2024-03-30 14:07:19 +0000
commit2dd406f08fc5d9877c8fd2642e94975eae37e86f (patch)
tree97f1833428dff865e99a2332a9c779fc02ff803d /keyboards/touchpad
parent76bd5142cfed1fb8e07b9f32fb0b010fbc068fa4 (diff)
downloadqmk_firmware-2dd406f08fc5d9877c8fd2642e94975eae37e86f.tar.gz
qmk_firmware-2dd406f08fc5d9877c8fd2642e94975eae37e86f.zip
Remove `quantum.h` includes from keyboard custom `matrix.c`s (#23371)
Diffstat (limited to 'keyboards/touchpad')
-rw-r--r--keyboards/touchpad/matrix.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/keyboards/touchpad/matrix.c b/keyboards/touchpad/matrix.c
index 87944cb7cc..7929e0969b 100644
--- a/keyboards/touchpad/matrix.c
+++ b/keyboards/touchpad/matrix.c
@@ -23,7 +23,8 @@ SOFTWARE.
#include "matrix.h"
#include "i2c_master.h"
-#include "quantum.h"
+#include "print.h"
+#include <string.h>
#define VIBRATE_LENGTH 50 //Defines number of interrupts motor will vibrate for, must be bigger than 8 for correct operation
volatile uint8_t vibrate = 0; //Trigger vibration in interrupt
@@ -276,16 +277,16 @@ matrix_row_t matrix_get_row(uint8_t row) {
}
void matrix_print(void) {
- printf("\nr/c 01234567\n");
+ xprintf("\nr/c 01234567\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- printf("%X0: ", row);
+ xprintf("%X0: ", row);
matrix_row_t data = matrix_get_row(row);
for (int col = 0; col < MATRIX_COLS; col++) {
if (data & (1<<col))
- printf("1");
+ xprintf("1");
else
- printf("0");
+ xprintf("0");
}
- printf("\n");
+ xprintf("\n");
}
}