1
0
Fork 0

Remove quantum.h includes from keyboard custom matrix.cs (#23371)

This commit is contained in:
Ryan 2024-03-31 01:07:19 +11:00 committed by GitHub
parent 76bd5142cf
commit 2dd406f08f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
97 changed files with 104 additions and 244 deletions

View file

@ -2,16 +2,10 @@
* matrix.c
*/
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <hal.h>
#include "quantum.h"
#include "matrix.h"
#include "timer.h"
#include "wait.h"
#include "print.h"
#include "matrix.h"
#ifndef DEBOUNCE
# define DEBOUNCE 5
@ -167,16 +161,16 @@ matrix_row_t matrix_get_row(uint8_t row) { return matrix[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");
}
}