aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/frosty_flake/matrix.c
diff options
context:
space:
mode:
authorGravatar Gabriel Young <gabeplaysdrums@live.com>2017-03-19 19:55:55 -0700
committerGravatar Gabriel Young <gabeplaysdrums@live.com>2017-03-19 19:55:55 -0700
commit4a97ef6c48ce7fee2b58c6a175c1c8003267a428 (patch)
treef6d09bea8fa082717f21415b7c06bbcb99de787b /keyboards/frosty_flake/matrix.c
parentd7fc2365402069a6149c9593dad82c4b4e31b78a (diff)
downloadqmk_firmware-4a97ef6c48ce7fee2b58c6a175c1c8003267a428.tar.gz
start to define keymap; annoying because rows and columns are swapped from schematic
Diffstat (limited to 'keyboards/frosty_flake/matrix.c')
-rw-r--r--keyboards/frosty_flake/matrix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/frosty_flake/matrix.c b/keyboards/frosty_flake/matrix.c
index 70456ada3..07b9f6dd6 100644
--- a/keyboards/frosty_flake/matrix.c
+++ b/keyboards/frosty_flake/matrix.c
@@ -151,11 +151,13 @@ inline matrix_row_t matrix_get_row(uint8_t row) {
return matrix[row];
}
+static const char ROW_NAMES[] = "ABCDEFGHIJKLMNOPQR";
+
void matrix_print(void) {
print("\nr/c 01234567\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
matrix_row_t row_scan = matrix_get_row(row);
- xprintf("%02X: ", row);
+ xprintf("%c: ", ROW_NAMES[row]);
for (uint8_t col = 0; col < MATRIX_COLS; col++) {
bool curr_bit = row_scan & (1<<col);
xprintf("%c", curr_bit ? '*' : '.');