From 10ad850a0201a05f7d5f28a543cdb8a63871bc13 Mon Sep 17 00:00:00 2001 From: Karolis Stasaitis Date: Sun, 26 May 2024 23:56:22 +0200 Subject: [PATCH] 2-keys for the example --- src/keyboards/example/kbdef.h | 4 +++- src/keyboards/example/layouts/default/layout.c | 13 ++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/keyboards/example/kbdef.h b/src/keyboards/example/kbdef.h index 11cc6a7..c5632aa 100644 --- a/src/keyboards/example/kbdef.h +++ b/src/keyboards/example/kbdef.h @@ -4,7 +4,7 @@ #include "sh68f90a.h" #define MATRIX_ROWS 1 -#define MATRIX_COLS 1 +#define MATRIX_COLS 2 // Row Pins Bits #define KB_R0_P7_1 _P7_1 @@ -14,8 +14,10 @@ // Column Pins Bits #define KB_C0_P5_0 _P5_0 +#define KB_C1_P5_1 _P5_1 // Column Pins #define KB_C0 P5_0 +#define KB_C1 P5_1 #endif diff --git a/src/keyboards/example/layouts/default/layout.c b/src/keyboards/example/layouts/default/layout.c index e09cdcb..b662168 100644 --- a/src/keyboards/example/layouts/default/layout.c +++ b/src/keyboards/example/layouts/default/layout.c @@ -7,9 +7,9 @@ // clang-format off #define LAYOUT_60( \ - K00_0 \ + K00_0, K01_0 \ ) { \ - { K00_0 } \ + { K00_0, K01_0 } \ } // Each layer gets a name for readability, which is then used in the keymap matrix below. @@ -17,15 +17,14 @@ // Layer names don't all need to be of the same length, obviously, and you can also skip them // entirely and just use numbers. #define _BL 0 -#define _FL 1 const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* Keymap _BL: (Base Layer) Default Layer - * ,---. - * |Esc| - * `---' + * ,-------. + * |Esc|Ent| + * `-------' */ [_BL] = LAYOUT_60( - KC_ESC + KC_ESC, KC_ENT ) };