diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-09-14 00:46:14 -0700 |
|---|---|---|
| committer | fauxpark <fauxpark@gmail.com> | 2019-09-14 17:46:14 +1000 |
| commit | 969dd8be562ad8d52822673e065f5d9947eb809d (patch) | |
| tree | 17748bc28d7015ab96be3858cb6c2a6057c52923 | |
| parent | 16200664751865288329bc18a93555c80f046950 (diff) | |
| download | qmk_firmware-969dd8be562ad8d52822673e065f5d9947eb809d.tar.gz qmk_firmware-969dd8be562ad8d52822673e065f5d9947eb809d.zip | |
Fix Corne keyboard matrix configuration (#6684)
| -rw-r--r-- | keyboards/crkbd/rev1/config.h | 4 | ||||
| -rw-r--r-- | keyboards/crkbd/rev1/rev1.c | 32 |
2 files changed, 18 insertions, 18 deletions
diff --git a/keyboards/crkbd/rev1/config.h b/keyboards/crkbd/rev1/config.h index 200923db5..f7f278f2c 100644 --- a/keyboards/crkbd/rev1/config.h +++ b/keyboards/crkbd/rev1/config.h | |||
| @@ -29,11 +29,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 29 | /* key matrix size */ | 29 | /* key matrix size */ |
| 30 | // Rows are doubled-up | 30 | // Rows are doubled-up |
| 31 | #define MATRIX_ROWS 8 | 31 | #define MATRIX_ROWS 8 |
| 32 | #define MATRIX_COLS 7 | 32 | #define MATRIX_COLS 6 |
| 33 | #define MATRIX_ROW_PINS { D4, C6, D7, E6 } | 33 | #define MATRIX_ROW_PINS { D4, C6, D7, E6 } |
| 34 | 34 | ||
| 35 | // wiring of each half | 35 | // wiring of each half |
| 36 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } | 36 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } |
| 37 | // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 37 | // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
| 38 | 38 | ||
| 39 | /* define if matrix has ghost */ | 39 | /* define if matrix has ghost */ |
diff --git a/keyboards/crkbd/rev1/rev1.c b/keyboards/crkbd/rev1/rev1.c index 24800358d..9568d8008 100644 --- a/keyboards/crkbd/rev1/rev1.c +++ b/keyboards/crkbd/rev1/rev1.c | |||
| @@ -42,14 +42,14 @@ | |||
| 42 | 42 | ||
| 43 | #ifdef RGB_MATRIX_SPLIT_RIGHT | 43 | #ifdef RGB_MATRIX_SPLIT_RIGHT |
| 44 | led_config_t g_led_config = { { | 44 | led_config_t g_led_config = { { |
| 45 | { 51, 50, 45, 44, 37, 36, NO_LED }, | 45 | { 51, 50, 45, 44, 37, 36 }, |
| 46 | { 52, 49, 46, 43, 38, 35, NO_LED }, | 46 | { 52, 49, 46, 43, 38, 35 }, |
| 47 | { 53, 48, 47, 42, 39, 34, NO_LED }, | 47 | { 53, 48, 47, 42, 39, 34 }, |
| 48 | { NO_LED, NO_LED, NO_LED, 41, 40, 33, NO_LED }, | 48 | { NO_LED, NO_LED, NO_LED, 41, 40, 33 }, |
| 49 | { 24, 23, 18, 17, 10, 9, NO_LED }, | 49 | { 24, 23, 18, 17, 10, 9 }, |
| 50 | { 25, 22, 19, 16, 11, 8, NO_LED }, | 50 | { 25, 22, 19, 16, 11, 8 }, |
| 51 | { 26, 21, 20, 15, 12, 7, NO_LED }, | 51 | { 26, 21, 20, 15, 12, 7 }, |
| 52 | { NO_LED, NO_LED, NO_LED, 14, 13, 6, NO_LED } | 52 | { NO_LED, NO_LED, NO_LED, 14, 13, 6 } |
| 53 | }, { | 53 | }, { |
| 54 | { 139, 16 }, { 174, 13 }, { 208, 20 }, { 208, 38 }, { 174, 48 }, { 139, 52 }, { 129, 63 }, | 54 | { 139, 16 }, { 174, 13 }, { 208, 20 }, { 208, 38 }, { 174, 48 }, { 139, 52 }, { 129, 63 }, |
| 55 | { 139, 39 }, { 139, 21 }, { 139, 4 }, { 156, 2 }, { 156, 19 }, { 156, 37 }, { 144, 58 }, | 55 | { 139, 39 }, { 139, 21 }, { 139, 4 }, { 156, 2 }, { 156, 19 }, { 156, 37 }, { 144, 58 }, |
| @@ -71,14 +71,14 @@ led_config_t g_led_config = { { | |||
| 71 | } }; | 71 | } }; |
| 72 | #else | 72 | #else |
| 73 | led_config_t g_led_config = { { | 73 | led_config_t g_led_config = { { |
| 74 | { 24, 23, 18, 17, 10, 9, NO_LED }, | 74 | { 24, 23, 18, 17, 10, 9 }, |
| 75 | { 25, 22, 19, 16, 11, 8, NO_LED }, | 75 | { 25, 22, 19, 16, 11, 8 }, |
| 76 | { 26, 21, 20, 15, 12, 7, NO_LED }, | 76 | { 26, 21, 20, 15, 12, 7 }, |
| 77 | { NO_LED, NO_LED, NO_LED, 14, 13, 6, NO_LED }, | 77 | { NO_LED, NO_LED, NO_LED, 14, 13, 6 }, |
| 78 | { 51, 50, 45, 44, 37, 36, NO_LED }, | 78 | { 51, 50, 45, 44, 37, 36 }, |
| 79 | { 52, 49, 46, 43, 38, 35, NO_LED }, | 79 | { 52, 49, 46, 43, 38, 35 }, |
| 80 | { 53, 48, 47, 42, 39, 34, NO_LED }, | 80 | { 53, 48, 47, 42, 39, 34 }, |
| 81 | { NO_LED, NO_LED, NO_LED, 41, 40, 33, NO_LED } | 81 | { NO_LED, NO_LED, NO_LED, 41, 40, 33 } |
| 82 | }, { | 82 | }, { |
| 83 | { 85, 16 }, { 50, 13 }, { 16, 20 }, { 16, 38 }, { 50, 48 }, { 85, 52 }, { 95, 63 }, | 83 | { 85, 16 }, { 50, 13 }, { 16, 20 }, { 16, 38 }, { 50, 48 }, { 85, 52 }, { 95, 63 }, |
| 84 | { 85, 39 }, { 85, 21 }, { 85, 4 }, { 68, 2 }, { 68, 19 }, { 68, 37 }, { 80, 58 }, | 84 | { 85, 39 }, { 85, 21 }, { 85, 4 }, { 68, 2 }, { 68, 19 }, { 68, 37 }, { 80, 58 }, |
