From: You Xiaojie / 尤晓杰 Date: Mon, 18 Mar 2019 06:47:07 +0000 (+0800) Subject: Correct the comments of matrix ROW and COL. (#604) X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=494faeb4881deed89677f4d79e986f70b1915451;p=max%2Ftmk_keyboard.git Correct the comments of matrix ROW and COL. (#604) according to the code: static uint8_t matrix[MATRIX_ROWS]; #define ROW(code) (code>>3) #define COL(code) (code&0x07) in converter/terminal_usb/matrix.c ROW is decided by bits 7-4 of scancode COL is decided by bits 2-0 of scancode --- diff --git a/converter/terminal_usb/config.h b/converter/terminal_usb/config.h index ea5ce62c..6191f728 100644 --- a/converter/terminal_usb/config.h +++ b/converter/terminal_usb/config.h @@ -28,8 +28,8 @@ along with this program. If not, see . /* matrix size */ -#define MATRIX_ROWS 17 // keycode bit: 3-0 -#define MATRIX_COLS 8 // keycode bit: 6-4 +#define MATRIX_ROWS 17 // keycode bit: 7-3 +#define MATRIX_COLS 8 // keycode bit: 2-0 /* legacy keymap support */