From 7c068b03ec39ca4615808b68a90fc4013f74182e Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Tue, 6 May 2014 00:12:47 +0900 Subject: [PATCH] Fix key matrix issue --- keyboard/akb96/keymap_default.c | 6 +++--- keyboard/akb96/matrix.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/keyboard/akb96/keymap_default.c b/keyboard/akb96/keymap_default.c index f7718041..28629204 100644 --- a/keyboard/akb96/keymap_default.c +++ b/keyboard/akb96/keymap_default.c @@ -27,7 +27,7 @@ const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = { TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS,P7, P8, P9, PPLS, \ CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, P4, P5, P6, \ LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT,P1, P2, P3, PENT, \ - LCTL,LGUI,LALT, SPC, RALT,FN0, RGUI, RCTL,P0, PDOT,PCMM ), + LCTL,LGUI,LALT, SPC, RALT,RGUI,FN0, RCTL,P0, PDOT,PCMM ), /* Keymap 1: Fn Layer * ,---------------------------------------------------------------------------. * | | | | | | | | | | | | | | | | | | | | @@ -49,7 +49,7 @@ const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = { TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS,TRNS, \ TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, \ TRNS,FN1, FN2, FN3, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS,TRNS, \ - TRNS,TRNS,TRNS, FN4, TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS ), + TRNS,TRNS,TRNS, FN4, TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS ), /* Keymap 2: Arrow key Overlayer * ,---------------------------------------------------------------------------. * | | | | | | | | | | | | | | | | | | | | @@ -71,7 +71,7 @@ const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = { TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS,TRNS, \ TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, \ TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,UP, TRNS,TRNS, \ - TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS, TRNS,LEFT,DOWN,RGHT ), + TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS, TRNS,LEFT,DOWN,RGHT ), }; /* diff --git a/keyboard/akb96/matrix.c b/keyboard/akb96/matrix.c index 874d3b4b..3419e0ce 100644 --- a/keyboard/akb96/matrix.c +++ b/keyboard/akb96/matrix.c @@ -138,21 +138,21 @@ uint8_t matrix_key_count(void) /* Column pin configuration * col: 0 1 2 3 4 5 - * pin: D14 D15 A0 A1 A2 A3 (arduino) - * PB0 PB1 PF7 PF6 PF5 PF4 + * pin: D17 D15 A0 A1 A2 A3 (arduino) + * PB3 PB1 PF7 PF6 PF5 PF4 */ static void init_cols(void) { // Input with pull-up(DDR:0, PORT:1) DDRF &= ~(1<